]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(defined_S_IFMT): New macro.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2005 07:55:50 +0000 (07:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2005 07:55:50 +0000 (07:55 +0000)
commit0d7468cabdb40152d7715356c4768d6459c119da
treee4baa23887dbba6a7c287c3ef210b73d3c9eea1f
parentcc4d59e9cd0a54118dc0f0dc833539102a42ea4a
(defined_S_IFMT): New macro.
Include stat-macros.h.
Include stdlib.h, for abort().
Don't include stdio.h or assert.h; no longer needed.
(same_file_type): Don't assume S_IFMT is defined, as POSIX
does not require this.  Don't assume S_IFCHR and S_IFBLK have
their usual sort of bit pattern.
(fchmod_new): Open with O_NOCTTY for as well, for minor
improvement on hosts where that matters.  Don't bother to assert,
since the caller (in this source file) checks the same thing.
Discard any errno from a close failure, for consistency with other
code.
lib/chmod-safer.c