[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: modify chmod
From: |
Jim Meyering |
Subject: |
Re: modify chmod |
Date: |
Sun, 07 Feb 2010 16:30:48 +0100 |
Finally, I see the one true way ;-)
Do this for each "name":
- open each file/dir. with fd = openat (fts_cwd_fd, name, ...
- if that succeeds, then call fstatfs (fd, ...
Using the combination of openat and fstatfs is required in order to
avoid using the full relative name of each object that chmod processes.
The above works for all readable objects.
For unreadable ones, revert to using the statfs with the full relative name.
- Re: modify chmod, (continued)
- Re: modify chmod, Jim Meyering, 2010/02/06
- Re: modify chmod, jeff.liu, 2010/02/07
- Re: modify chmod, Jim Meyering, 2010/02/07
- Re: modify chmod, jeff.liu, 2010/02/07
- Re: modify chmod,
Jim Meyering <=
- Re: modify chmod, jeff.liu, 2010/02/08
- Re: modify chmod, jeff.liu, 2010/02/08
- Re: modify chmod, Jim Meyering, 2010/02/13
- Re: modify chmod, jeff.liu, 2010/02/21
- Re: modify chmod, Jim Meyering, 2010/02/21
- Message not available
- Re: modify chmod, Jim Meyering, 2010/02/21
- Re: modify chmod, jeff.liu, 2010/02/21
Re: modify chmod, jeff.liu, 2010/02/05