This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: one more openat-style function required: fchmodat
- From: Roland McGrath <roland at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: Jim Meyering <jim at meyering dot net>, libc-alpha at sources dot redhat dot com
- Date: Fri, 6 Jan 2006 13:56:19 -0800 (PST)
- Subject: Re: one more openat-style function required: fchmodat
> I'm not at all convinced this is a good think. It can be achieved using
> openat + fchmod.
If it has mode 000 or suchlike, this won't work. If it is a device where
opening and closing have magic effects, you don't want to do this.