summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-12-19Require gl_CHMOD_SAFER.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(is_empty_dir): Open with O_NDELAY, so we don't hang, e.g., on a named pipe.Jim Meyering
(OPEN_NO_FOLLOW_SYMLINK): Remove definition. Use O_NOFOLLOW in place of all uses, since it is guaranteed (system.h) to be defined.
2005-12-17*** empty log message ***Jim Meyering
2005-12-17Add lib/acl.c.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(stat invocation) [--printf]: Describe new option.Jim Meyering
[--format]: Add example. Distinguish from --printf. Sort option descriptions.
2005-12-17.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(ls): Clarify the Alternate Access Method description.Jim Meyering
(cp): Clarify that --preserve=mode also preserves acls.
2005-12-17(cp_option_init): Don't set umask_kill member.Jim Meyering
2005-12-17(cp_option_init): Don't set umask_kill member.Jim Meyering
2005-12-17(cp_option_init) [umask_kill]: Remove member.Jim Meyering
2005-12-17(umask_kill): With default acls, the umask is not to be applied.Jim Meyering
Remove umask_kill, don't change the process umask, and let the kernel apply the umask where appropriate. (make_dir_parents_private): Fix logic for POSIX ACLs.
2005-12-17(dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD, mv_LDADD, ginstall_LDADD):Jim Meyering
On systems with an ACL library, arrange to link with it via $(LIB_ACL), for the utilities that need it.
2005-12-17(get_dest_mode): Remove; it is obsolete after removing umask_kill.Jim Meyering
(copy_reg, copy_internal): Use copy_acl and set_acl instead of fchown/chown. Fix the logic for POSIX ACLs. (chown_succeded): Remove; we now always copy acls and preserve S_ISUID, S_ISGID, and S_ISVTX when needed, no matter if we did a chown before or not.
2005-12-17Switch back from HAVE_ACL to USE_ACL: The acl() syscallJim Meyering
is no requirement for ACL support; particularly, it does not exist on systems that have POSIX ACLs.
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(acl_entries): Add fallback implementation for POSIX ACLJim Meyering
systems other than Linux. (chmod_or_fchmod): New function: use fchmod when possible, and chmod otherwise. (file_has_acl): Add a POSIX ACL implementation, with a Linux-specific subcase. (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and S_ISVTX from one file to another. Fall back to fchmod/chmod when acls are unsupported. (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and S_ISVTX to a defined value. Fall back to fchmod/chmod when acls are unsupported.
2005-12-17(copy_acl, set_acl): Add declarations.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.Jim Meyering
2005-12-17remove/openat cleanupPaul Eggert
2005-12-17(OPENAT_CWD_RESTORE__REQUIRE): Remove.Paul Eggert
(OPENAT_CWD_RESTORE__ALLOW_FAILURE): Likewise. (fd_to_subdirp): Remove openat_cwd_restore_allow_failure arg; its value is now signified by whether cwd_errno is null. (fd_to_subdirp, remove_dir, rm_1); Change cwd failure indicator from pointer-to-bool to pointer-to-errno-value. All callers changed. (rm_1): Don't bother setting a local cwd failure flag and then ORing it into the caller's. Just set the caller's. (rm): Use cwd failure errno value to print a slightly-better diagnostic.
2005-12-17Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,Paul Eggert
"gettext.h"; either no longer needed or are guaranteed by openat.h. (_): Remove; no longer needed. (openat): Renamed from rpl_openat; no need for rpl_openat since openat.h renames openat for us. Replace most of the body with a call to openat_permissive, to avoid duplicate code. Port to (probably hypothetical) environments were mode_t is wider than int. (openat_permissive): Require mode arg, so that we can check types better. Put it just after flags. Change cwd failure indicator from pointer-to-bool to pointer-to-errno-value. All callers changed. Invoke openat_save_fail and/or openat_restore_fail if cwd_errno is null, so that openat can call us. (openat_permissive, fdopendir, fstatat, unlinkat): Simplify errno handling to avoid some duplicate code, as it's OK to set errno on success.
2005-12-17Revamp code so that function macros depend onPaul Eggert
__OPENAT_PREFIX only, not also on AT_FDCWD. (openat_ro): Remove. Caller changed to use openat_permissive. (openat_permissive): Now a macro, if not a function. (openat_restore_fail, openat_save_fail): Now always functions, since mkdirat needs them even if __OPENAT_PREFIX is defined.
2005-12-15*** empty log message ***Jim Meyering
2005-12-15(print_it): Properly handle a backslash at theJim Meyering
end of a --printf format string. Reported by Paul Eggert.
2005-12-15(print_it): Properly handle a backslash at theJim Meyering
end of a --printf format string. Reported by Paul Eggert. (end-bs): Add a test for the above.
2005-12-15Fix typo in previous changePaul Eggert
2005-12-15tests/acl porting fixesPaul Eggert
2005-12-15Port to pre-POSIX shells like Solaris 8 /bin/sh.Paul Eggert
Don't assume /etc/passwd contains user names; use 'id' instead.
2005-12-15Regenerate.Paul Eggert
2005-12-15Add Kinyarwanda (rw).Jim Meyering
Add Croatian (hr).
2005-12-15.Jim Meyering
2005-12-15.Jim Meyering
2005-12-15*** empty log message ***Jim Meyering
2005-12-15stat: revert behavior of --format=FMT (-c)Jim Meyering
stat: add new option: --printf=FMT
2005-12-15revert behavior of --format=FMT (-c)Jim Meyering
add new option: --printf=FMT (isodigit, octtobin, hextobin): Define. (PRINTF_OPTION): Define. (interpret_backslash_escapes, trailing_delim): New globals. (usage): Document them. Alphabetize on long option names. (print_esc_char): New function. (print_it): Rewrite, in order to handle backslash escapes. (main): Handle new option. Set globals for --format, too.
2005-12-15(TESTS): Add stat-printf.Jim Meyering
2005-12-15Test --printf and --format.Jim Meyering
2005-12-15*** empty log message ***Jim Meyering
2005-12-15Diagnose "sort -c -o FILE".Paul Eggert
2005-12-14(incompatible_options): New function.Paul Eggert
(check_ordering_compatibility, main): Use it. (main): Check for -c and -o. Don't bother with a usage message for "sort -c a b", for consistency with other error diagnostics.
2005-12-14(incompat4): New test.Paul Eggert
2005-12-14sort now reports incompatible options.Paul Eggert
2005-12-14(check_ordering_compatibility): New function.Paul Eggert
(main): Use it.
2005-12-14(incompat1, incompat2, incompat3): New tests.Paul Eggert
2005-12-14*** empty log message ***Jim Meyering