Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
added new function string_to_mode(char *m_string, mode_t base) which
parses a given string and converts it to a mode_t.
If either + or - are part of m_string the permissions are either
added or removed from base.
Currently support for permision copy is missing (e.g. g=u),
but all other flags should work.
Format for m_string: either symbolic modes or octal representation.
symbolic modes:
[auog][[+-=][rwxst]*]
examples:
string_to_mode("u=rwx,g=rw,o=r", 0);
string_to_mode("a-x", 0777);
string_to_mode("0744", 0);
|
|
fprintf().
|
|
|
|
a regression in recent versions inexplicably crediting a linux feature to the FSF, so add the prototype ourselves.
|
|
|
|
|
|
aboriginal build.
|
|
|
|
euid!=uid and egid!=gid cases. (Note: test suite requires root access, possibly container support.)
|
|
/etc/passwd says.
|
|
|
|
optargs and llist.c, plus add a test suite entry. Still no -f support though.
|
|
|
|
|
|
|
|
|
|
|
|
file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
global to prepare for -m, use do_blah name loopfiles() usually calls, one less redundant mkdir() call, go ahead and modify writeable args instead of strdup(), return before restoring / so error message is better, use perror_msg().
|
|
|
|
|
|
|
|
|
|
compelling use case.)
|
|
|
|
|
|
|
|
match, update exit code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stdout, not stderr.
|
|
|
|
|
|
|