summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-01-03(O_DIRECTORY) [!defined O_DIRECTORY]: Define.Jim Meyering
2006-01-03(RC_do_ordinary_chown): New enum value.Paul Eggert
(restricted_chown): Return it, if the file cannot be accessed due to EPERM, or if no uid or gid are required, or if the file is neither a directory nor a regular file. Rewrite to avoid gotos. (change_file_owner): Handle RC_do_ordinary_chown case. Rewrite to avoid gotos.
2006-01-03(usage): Explain %g, %G, and %V a bit better.Paul Eggert
2006-01-02(set_owner): Correct a comment.Jim Meyering
2006-01-02(parse_options): Change warning to say that --retryJim Meyering
is useful `mainly' (not `only') when following by name. Reported here: http://bugs.debian.org/273781
2006-01-02(usage): Clarify -m's operation.Paul Eggert
(main): If -m is given, don't invoke chmod; use umask 0 instead. Report an error if -m asks for bits outside the 777 range. Undo 2005-12-19 changes.
2006-01-02Update copyright year.Paul Eggert
2006-01-02(usage): Clarify -m's operation.Paul Eggert
(main): If -m is given, don't invoke chmod; use umask 0 instead. Report an error if -m asks for bits outside the 777 range.
2006-01-02Include lchmod.h.Paul Eggert
(usage): Clarify -m's operation. (main): Use lchmod rather than chmod. Don't use lchmod unless the new mode contains bits outside the 777 range.
2006-01-02Include lchmod.h.Paul Eggert
(re_protect, make_dir_parents_private): Use lchmod rather than chmod.
2006-01-02Include lchmod.h.Paul Eggert
(copy_internal): Use lchmod rather than chmod.
2005-12-28Don't include <assert.h>; it wasn't used.Jim Meyering
2005-12-27(wipename): Use similar open flags to other places we open directories.Paul Eggert
Don't bother trying to open dir for writing, since POSIX prohibits it.
2005-12-27(fd_to_subdirp): Open with O_DIRECTORY | O_NOCTTYPaul Eggert
| O_NOFOLLOW too, for consistency with other dir-openers. Use POSIX-preferred O_NONBLOCK rather than O_NDELAY. (is_empty_dir): Likewise.
2005-12-27(restricted_chown):Paul Eggert
Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
2005-12-21.Jim Meyering
2005-12-19(main) Avoid a minor race condition when `-m MODE' is specified, by usingJim Meyering
open, fchown, and close rather than just chown. To do that reliably (even with an overly restrictive umask), ensure that each mknod call uses a mode including at least owner-read access. (main): When `-m MODE' is specified, exit nonzero if the subsequent chown (or equivalent open,fchown,close) fails.
2005-12-19(main) Avoid a minor race condition when `-m MODE' is specified, by usingJim Meyering
open, fchown, and close rather than just chown. To do that reliably (even with an overly restrictive umask), ensure that each mkdir call uses a mode including at least owner-read access.
2005-12-19(main) Avoid a minor race condition when `-m MODE' is specified, by usingJim Meyering
open, fchown, and close rather than just chown. To do that reliably (even with an overly restrictive umask), ensure that each mknod/mkfifo call uses a mode including at least owner-read access.
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.Jim Meyering
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(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-15(print_it): Properly handle a backslash at theJim Meyering
end of a --printf format string. Reported by Paul Eggert.
2005-12-15.Jim Meyering
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-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(check_ordering_compatibility): New function.Paul Eggert
(main): Use it.
2005-12-14Undo previous change.Paul Eggert
2005-12-14(main): Check for close (STDOUT_FILENO) failure.Paul Eggert
2005-12-12(struct irand_state, irand_init, irand32, irand_mod): Moved back here,Paul Eggert
from rand-isaac.c.
2005-12-12(struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.Paul Eggert
2005-12-12(EXTRA_DIST): Add rand-isaac.c.Paul Eggert
2005-12-12Remove. All uses now simply include rand-isaac.c.Paul Eggert
2005-12-12Include rand-isaac.c rather than rand-isaac.h.Paul Eggert
Don't include md5.h; it wasn't needed. (struct keyfield): Rename random_hash to random, for consistency with the other member names. All uses changed. (usage): Tweak wording to mention STRING for --seed option. (short_options): Rorder for consistency with other programs. (rand_state): Now a struct, not a pointer to one. All uses changed. (HASH_WORDS, HASH_SIZE): Remove. (get_hash): Remove comments around resbuf size, since we can assume C89. Use a "more-kosher" (but slower) approach of invoking isaac_refill. (keycompare): Adjust to the new get_hash. Add a FIXME. (badfieldspec): Omit recently-introduced comment; it isn't needed. (main): Don't set need_random simply because gkey has it set; that doesn't necessarily mean we'll need random numbers. Redo seeding to match new get_hash approach.
2005-12-12Include rand-isaac.c rather than rand-isaac.h.Paul Eggert
(fillrand, dopass, main): Undo previous change.
2005-12-12Revert to what used to be in shred.c, withoutPaul Eggert
changing it to allow for varying numbers of words in the state. Alter so that we include rand-isaac.c directly rather than compiling it and linking to it. Don't include config.h or system.h; that's the includer's responsibility. (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind): (isaac_step, struct irand_state): Resurrect these, with the same defns that used to be in shred.c. (ISAAC_SIZE, isaac_new, isaac_copy): Remove. (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32): static again. (struct isaac_state, isaac_refill, isaac_mix, isaac_init): (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed): (irand_init, irand32, irand_mod): Number of words is constant again.
2005-12-12(noinst_HEADERS): Remove rand-isaac.h.Paul Eggert
2005-12-10(noinst_HEADERS): Add rand-isaac.h.Jim Meyering
2005-12-10Cleaner:Jim Meyering
Make the local an `int' instead.
2005-12-10Avoid shred segfault on 64-bit systems.Jim Meyering
(isaac_refill): Don't try to negate a local of type uint32_t. Convert it to int32_t first.
2005-12-10* src/rand-isaac.h (isaac_mix): Remove declaration.Jim Meyering
2005-12-10* src/rand-isaac.c (isaac_mix): Declare to be static.Jim Meyering
Mark all other functions as `extern' so the tight-scope part of `make distcheck' passes once again. * src/rand-isaac.h (isaac_mix): Remove declaration.
2005-12-10(get_hash): Change position of `*' in parameter type to conform with convention.Jim Meyering
(main): Split a long line so it fits in 80 columns.