summaryrefslogtreecommitdiff
path: root/lib/modechange.c
AgeCommit message (Collapse)Author
2000-12-29Do not assume that mode_t uses theJim Meyering
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.
2000-10-31Remove "2000" from Copyright line, as the file hasn't beenJim Meyering
changed this year other than in the copyright notice.
2000-01-12(mode_compile): Use uintmax_t, not unsignedJim Meyering
long, to parse numeric modes. Check for any unknown bits, not just unknown bits left of the leftmost known bit.
1999-04-26(make_node_op_equals, mode_compile, mode_create_from_ref, mode_adjust):Jim Meyering
Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits. modechange.h now includes sys/types.h. Include xstrtol.h. (isodigit, oatoi): Remove. (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined. (CHMOD_MODE_BITS): New macro. (mode_compile): Convert from octal with xstrtoul, not our own routine.
1999-03-30(make_node_op_equals): New function.Jim Meyering
(mode_append_entry): Likewise. (mode_compile): When none of [ugoa] is specified in an `=OP' change mode request, insert a `=0' entry into the linked list so that all bits are cleared first. Use the new functions.
1999-03-28(mode_compile): Upon allocation failure, freeJim Meyering
everything starting with the head, not the tail.
1998-09-19Fix post-protoization typo.Jim Meyering
1998-09-09(oatoi): declare arg to be constJim Meyering
1998-09-09Protoize.Jim Meyering
1997-08-03(mode_create_from_ref): Remove dcl of unused local, I.Jim Meyering
1997-07-29(mode_create_from_ref): Don't use umask.Jim Meyering
Don't use MODE_X_IF_ANY_X.
1997-07-06(mode_create_from_ref): New function.Jim Meyering
1996-10-29.Jim Meyering
1996-09-28.Jim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1996-05-16(mode_compile): Declare parameter MODE_STRING const.Jim Meyering
Remove register attribute. (mode_adjust): Likewise for CHANGES.
1994-10-02merge with 3.9hJim Meyering
1994-08-27.Jim Meyering
1994-07-01.Jim Meyering
1992-10-31Initial revisionJim Meyering