[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Race-condition ?
From: |
David Kastrup |
Subject: |
Re: Race-condition ? |
Date: |
Sun, 26 Jun 2005 20:48:33 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Gaëtan LEURENT) writes:
> David Kastrup wrote on 24 Jun 2005 23:01:50 +0200:
>
>> I fail to see the advantage of using chown, or using fopen and
>> fchown. In both cases the file name can be changed to refer to
>> something else before the operation starts.
>>
>> The only situation where fchown offers any advantage is where you
>> _already_ have a file open, like when you write the file after fopen,
>> and then change its permissions.
>
> Yes, that is true. But we are exactly in the situation were fchown is
> useful.
I saw the detailed description afterwards. You are right. fchown
would be desirable to use where available.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Re: Race-condition ? (was: "Preserve owner and group" on MSDOS/Windows), Richard M. Stallman, 2005/06/26
Re: Race-condition ? (was: "Preserve owner and group" on MSDOS/Windows), Richard M. Stallman, 2005/06/26
- Re: Race-condition ?, Gaëtan LEURENT, 2005/06/26
- Re: Race-condition ?, Richard M. Stallman, 2005/06/27
- Re: Race-condition ?, Gaëtan LEURENT, 2005/06/28
- Re: Race-condition ?, Lennart Borgman, 2005/06/28
- Re: Race-condition ?, David Kastrup, 2005/06/30