summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-03-09*** empty log message ***Jim Meyering
2002-03-09*** empty log message ***Jim Meyering
2002-03-09.Jim Meyering
2002-03-09(rm) Add comment on new parameter.Jim Meyering
2002-03-09*** empty log message ***Jim Meyering
2002-03-08(struct dev_ino): Declare new type.Jim Meyering
(rm): Add a parameter to the prototype.
2002-03-08(main): Call lstat `.' to get the device/inode numbersJim Meyering
now required for rm.
2002-03-08(do_move): The first time we resort to copy/remove,Jim Meyering
call lstat `.' to get the device/inode numbers now required for rm.
2002-03-08Don't allow a malicious user to trick another user's rm process intoJim Meyering
removing unintended files. In one scenario, if root is removing a hierarchy that is writable by the malicious user, that user may trick root into removing all of `/'. Reported by Wojciech Purczynski. (remove_dir): After chdir `..', call lstat to get the dev/inode of "." and fail if they aren't the same as the old numbers. (remove_cwd_entries): New parameter, `cwd_dev_ino'. (remove_dir): Likewise. (rm): Likewise. Adjust all callers.
2002-03-08*** empty log message ***Jim Meyering
2002-03-08*** empty log message ***Jim Meyering
2002-03-08Mention that this wrapper is needed also on mips-dec-ultrix4.4 systems.Jim Meyering
2002-03-06.Jim Meyering
2002-03-06update from mastersJim Meyering
2002-03-06.Jim Meyering
2002-03-06*** empty log message ***Jim Meyering
2002-03-06(cut invocation): Say that selected input is written in the sameJim Meyering
order that it is read, and is written exactly once.
2002-03-05*** empty log message ***Jim Meyering
2002-03-03*** empty log message ***Jim Meyering
2002-03-03(tgz-size): Also handle a suffix of `K', sinceJim Meyering
the sizes in the output of `du -h' now look like `29K'
2002-03-03*** empty log message ***Jim Meyering
2002-03-03Make cp -r equivalent to cp -R. Add a new cp option --copy-contentsJim Meyering
for people who want to emulate the traditional (and rarely desirable) cp -r behavior. (cp invocation): Document this. Fix some related minor bugs: --no-dereference is no longer equivalent to -d, and --archive (-a) can override the other symlink options. Warn that cp -R is not portable on symbolic links unless you also specify -P.
2002-03-03*** empty log message ***Jim Meyering
2002-03-03.Jim Meyering
2002-03-03(copy_internal): Remove -r warning; no longer needed.Jim Meyering
2002-03-03(COPY_CONTENTS_OPTION): New enum value.Jim Meyering
(long_opts): Add --copy-contents. (usage): Describe new behavior. Sort options. (main): Implement new behavior. Remove diagnostics for -a and -r; no longer needed.
2002-03-03.Jim Meyering
2002-03-03.Jim Meyering
2002-03-02.Jim Meyering
2002-03-02Reflect changed semantics of cp's -r option.Jim Meyering
2002-03-02.Jim Meyering
2002-03-02*** empty log message ***Jim Meyering
2002-03-02(strnlen): Define-away/undef so that an inconsistent prototype inJim Meyering
string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't cause trouble.
2002-03-02.Jim Meyering
2002-03-02*** empty log message ***Jim Meyering
2002-03-02(cp invocation): Document that cp -rJim Meyering
preserves symlinks. Emphasize non-portability of cp -r.
2002-03-02(main): Warn when -r is specified before --archive (-a).Jim Meyering
2002-03-02add a commentJim Meyering
2002-03-02(copy_internal): For each symlink copied by cp -r,Jim Meyering
issue a warning that `cp -r' is not portable.
2002-03-02(main): Revert change of 2001-12-29. With this change,Jim Meyering
cp -r once again preserves symlinks. (usage): Document the original (now-restored) behavior.
2002-03-02*** empty log message ***Jim Meyering
2002-03-02(main): Fail if -r is specified after --archive (-a) on the command line.Jim Meyering
2002-03-02be careful about leading/trailing spacesJim Meyering
2002-03-02*** empty log message ***Jim Meyering
2002-03-02(copy_reg): Detect abuse of a race conditionJim Meyering
whereby an unprivileged user could gain read access to otherwise- inaccessible files when root uses cp or mv to copy a hierarchy belonging to that user.
2002-03-01Include timespec.h.Jim Meyering
(strftime, time, stime): Remove declarations; no longer needed. (usage): Document %N. (main): Use gettime rather than time to get the time of day, so that we can get fractional times. Similarly for settime and stime, so that we can set fractional times (though this currently is not available to the user since we don't parse fractional times; add FIXMES for that). Check for gettime failures; e.g. this can occur if it is past 2038 and we are a 32-bit app running on a 64-bit OS. Get fractional part of file time stamps. Do not falsely report failures just because time_t happens to be -1 (e.g. a file time stamp 1 second before the epoch). (show_date): 2nd arg is now struct timespec, not time_t. All uses changed. Use nstrftime rather than strftime, so that we can format fractional seconds.
2002-03-01*** empty log message ***Jim Meyering
2002-03-01(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.Jim Meyering
2002-03-01.Jim Meyering
2002-03-01(strftime-check): Add `N'.Jim Meyering