diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-29 10:32:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-29 10:32:09 +0000 |
commit | 3336d7cf69601c496f2f3c428ebd25b66823a059 (patch) | |
tree | eec250d34a8809a69d2b1e97d1fc26a823f0d699 /lib/linebuffer.c | |
parent | c319b5bf3bce084b5dd7c760f4701cd1b557668b (diff) | |
download | coreutils-3336d7cf69601c496f2f3c428ebd25b66823a059.tar.xz |
Do not assume that mode_t uses the
traditional octal encoding. E.g. "chmod 1 FOO" should set
the other-execute bit of FOO even if S_IXOTH != 1.
(SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
WOTH, XOTH, ALLM): New macros.
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
Use them.
(S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
(S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
(mode_compile):
No need to use uintmax_t; unsigned long is long enough.
Don't bother to get suffix since we don't use it.
Diffstat (limited to 'lib/linebuffer.c')
0 files changed, 0 insertions, 0 deletions