Jim Meyering
aa0c7901a4
update from masters
2002-03-06 09:11:13 +00:00
Jim Meyering
ef8f6fe459
.
2002-03-06 09:06:01 +00:00
Jim Meyering
c3aafd6932
*** empty log message ***
2002-03-06 08:56:50 +00:00
Jim Meyering
b0a1aa04ba
(cut invocation): Say that selected input is written in the same
...
order that it is read, and is written exactly once.
2002-03-06 08:56:16 +00:00
Jim Meyering
e304471a9e
*** empty log message ***
2002-03-05 09:03:40 +00:00
Jim Meyering
405638ebb0
*** empty log message ***
2002-03-03 23:25:58 +00:00
Jim Meyering
2020df6702
(tgz-size): Also handle a suffix of `K', since
...
the sizes in the output of `du -h' now look like `29K'
2002-03-03 23:25:05 +00:00
Jim Meyering
c4836a7811
*** empty log message ***
FILEUTILS-4_1_6
2002-03-03 22:30:13 +00:00
Jim Meyering
47c5a14bad
Make cp -r equivalent to cp -R. Add a new cp option --copy-contents
...
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 22:30:06 +00:00
Jim Meyering
f6ac75fd2c
*** empty log message ***
2002-03-03 22:29:41 +00:00
Jim Meyering
c76a2ddf15
.
2002-03-03 22:29:36 +00:00
Jim Meyering
337e4b174d
(copy_internal): Remove -r warning; no longer needed.
2002-03-03 22:29:31 +00:00
Jim Meyering
246e147a6a
(COPY_CONTENTS_OPTION): New enum value.
...
(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 22:28:48 +00:00
Jim Meyering
e566848d2a
.
2002-03-03 09:57:20 +00:00
Jim Meyering
da1695cee6
.
2002-03-03 09:54:53 +00:00
Jim Meyering
2fd63693cc
.
2002-03-02 17:43:10 +00:00
Jim Meyering
244554ca1a
Reflect changed semantics of cp's -r option.
2002-03-02 17:42:45 +00:00
Jim Meyering
22b03a6110
.
2002-03-02 17:39:58 +00:00
Jim Meyering
d726c5ad5f
*** empty log message ***
2002-03-02 17:39:26 +00:00
Jim Meyering
c5fcc8e462
(strnlen): Define-away/undef so that an inconsistent prototype in
...
string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't cause trouble.
2002-03-02 17:39:17 +00:00
Jim Meyering
256f19b8db
.
2002-03-02 17:37:50 +00:00
Jim Meyering
e4dfd95e1f
*** empty log message ***
2002-03-02 17:36:04 +00:00
Jim Meyering
846263ddff
(cp invocation): Document that cp -r
...
preserves symlinks. Emphasize non-portability of cp -r.
2002-03-02 17:35:39 +00:00
Jim Meyering
b9d1d9e98e
(main): Warn when -r is specified before --archive (-a).
2002-03-02 17:23:34 +00:00
Jim Meyering
3c3e5c4a31
add a comment
2002-03-02 17:17:49 +00:00
Jim Meyering
e2497bb4fd
(copy_internal): For each symlink copied by cp -r,
...
issue a warning that `cp -r' is not portable.
2002-03-02 17:16:42 +00:00
Jim Meyering
7a5c83d8d5
(main): Revert change of 2001-12-29. With this change,
...
cp -r once again preserves symlinks.
(usage): Document the original (now-restored) behavior.
2002-03-02 17:15:42 +00:00
Jim Meyering
808b51dfba
*** empty log message ***
2002-03-02 16:44:07 +00:00
Jim Meyering
baea296b94
(main): Fail if -r is specified after --archive (-a) on the command line.
2002-03-02 16:44:02 +00:00
Jim Meyering
07b422cb2a
be careful about leading/trailing spaces
2002-03-02 13:24:46 +00:00
Jim Meyering
558fd59769
*** empty log message ***
2002-03-02 08:38:57 +00:00
Jim Meyering
dea4262fa6
(copy_reg): Detect abuse of a race condition
...
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-02 08:38:47 +00:00
Jim Meyering
17e6a0e4bb
Include timespec.h.
...
(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 23:57:21 +00:00
Jim Meyering
9f1c3a0e22
*** empty log message ***
2002-03-01 23:54:58 +00:00
Jim Meyering
a9e1eeab54
(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.
2002-03-01 23:54:52 +00:00
Jim Meyering
b39517e205
.
2002-03-01 23:36:30 +00:00
Jim Meyering
920077edd1
(strftime-check): Add `N'.
2002-03-01 23:35:58 +00:00
Jim Meyering
e2f0548110
(Time directives): Add %N for nanoseconds.
...
This documents the recent change to 'ls'.
2002-03-01 23:35:00 +00:00
Jim Meyering
a25f0cdb7e
reflect renaming: nanosleep.h -> timespec.h
2002-03-01 23:34:23 +00:00
Jim Meyering
5fe8296d4a
*** empty log message ***
2002-03-01 23:29:32 +00:00
Jim Meyering
853b15e627
*** empty log message ***
2002-03-01 23:28:21 +00:00
Jim Meyering
f5d3da342d
*** empty log message ***
2002-03-01 23:26:26 +00:00
Jim Meyering
8f5e4ea244
(jm_MACROS): Do not replace stime; no longer used.
...
Check for clock_settime.
2002-03-01 23:26:10 +00:00
Jim Meyering
06b02f10be
*** empty log message ***
2002-03-01 23:21:09 +00:00
Jim Meyering
e616c17722
.
2002-03-01 23:21:01 +00:00
Jim Meyering
3bde76131b
(libfetish_a_SOURCES): Add gettime.c, settime.c,
...
timespec.h. Remove nanosleep.h.
2002-03-01 23:20:53 +00:00
Jim Meyering
5a3e8f271b
new file, from Paul Eggert
2002-03-01 23:20:20 +00:00
Jim Meyering
e5106171da
Reflect renaming: nanosleep.h -> timespec.h.
2002-03-01 23:19:28 +00:00
Jim Meyering
e56702cfd6
new macros/decls, from Paul Eggert
2002-03-01 23:16:55 +00:00
Jim Meyering
20075bd5d4
renamed from nanosleep.h
2002-03-01 23:15:29 +00:00