[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [MiNT] an example of broken lib
> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Andreas Schwab
> Sent: Friday, June 25, 1999 10:28 AM
> To: Guido Flohr
> Cc: MiNT mailing list
> Subject: Re: [MiNT] an example of broken lib
>
>
> "Guido Flohr" <gufl0000@stud.uni-sb.de> writes:
>
> |> But in 99 % of the cases, using fchmod instead of chmod is
> just lazyness
> |> of the programmer (don't have to remember the path name).
>
> Think about security. Using file names instead of descriptors creates
> unnecessary races.
Actually, it's also much more efficient as you save one lookup. But it's not
POSIX, so the source code should be written in a way such that it works also
on systems without this call.