platform/upstream/coreutils.git
22 years ago(rm) Add comment on new parameter.
Jim Meyering [Sat, 9 Mar 2002 21:02:05 +0000 (21:02 +0000)]
(rm) Add comment on new parameter.

22 years ago*** empty log message ***
Jim Meyering [Sat, 9 Mar 2002 20:44:11 +0000 (20:44 +0000)]
*** empty log message ***

22 years ago(struct dev_ino): Declare new type.
Jim Meyering [Fri, 8 Mar 2002 16:46:26 +0000 (16:46 +0000)]
(struct dev_ino): Declare new type.
(rm): Add a parameter to the prototype.

22 years ago(main): Call lstat `.' to get the device/inode numbers
Jim Meyering [Fri, 8 Mar 2002 16:46:11 +0000 (16:46 +0000)]
(main): Call lstat `.' to get the device/inode numbers
now required for rm.

22 years ago(do_move): The first time we resort to copy/remove,
Jim Meyering [Fri, 8 Mar 2002 16:45:51 +0000 (16:45 +0000)]
(do_move): The first time we resort to copy/remove,
call lstat `.' to get the device/inode numbers now required for rm.

22 years agoDon't allow a malicious user to trick another user's rm process into
Jim Meyering [Fri, 8 Mar 2002 16:45:31 +0000 (16:45 +0000)]
Don't allow a malicious user to trick another user's rm process into
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.

22 years ago*** empty log message ***
Jim Meyering [Fri, 8 Mar 2002 15:41:30 +0000 (15:41 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 8 Mar 2002 08:23:53 +0000 (08:23 +0000)]
*** empty log message ***

22 years agoMention that this wrapper is needed also on mips-dec-ultrix4.4 systems.
Jim Meyering [Fri, 8 Mar 2002 08:23:47 +0000 (08:23 +0000)]
Mention that this wrapper is needed also on mips-dec-ultrix4.4 systems.

22 years ago.
Jim Meyering [Wed, 6 Mar 2002 09:15:00 +0000 (09:15 +0000)]
.

22 years agoupdate from masters
Jim Meyering [Wed, 6 Mar 2002 09:11:13 +0000 (09:11 +0000)]
update from masters

22 years ago.
Jim Meyering [Wed, 6 Mar 2002 09:06:01 +0000 (09:06 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 6 Mar 2002 08:56:50 +0000 (08:56 +0000)]
*** empty log message ***

22 years ago(cut invocation): Say that selected input is written in the same
Jim Meyering [Wed, 6 Mar 2002 08:56:16 +0000 (08:56 +0000)]
(cut invocation): Say that selected input is written in the same
order that it is read, and is written exactly once.

22 years ago*** empty log message ***
Jim Meyering [Tue, 5 Mar 2002 09:03:40 +0000 (09:03 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 23:25:58 +0000 (23:25 +0000)]
*** empty log message ***

22 years ago(tgz-size): Also handle a suffix of `K', since
Jim Meyering [Sun, 3 Mar 2002 23:25:05 +0000 (23:25 +0000)]
(tgz-size): Also handle a suffix of `K', since
the sizes in the output of `du -h' now look like `29K'

22 years ago*** empty log message *** FILEUTILS-4_1_6
Jim Meyering [Sun, 3 Mar 2002 22:30:13 +0000 (22:30 +0000)]
*** empty log message ***

22 years agoMake cp -r equivalent to cp -R. Add a new cp option --copy-contents
Jim Meyering [Sun, 3 Mar 2002 22:30:06 +0000 (22:30 +0000)]
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.

22 years ago*** empty log message ***
Jim Meyering [Sun, 3 Mar 2002 22:29:41 +0000 (22:29 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 22:29:36 +0000 (22:29 +0000)]
.

22 years ago(copy_internal): Remove -r warning; no longer needed.
Jim Meyering [Sun, 3 Mar 2002 22:29:31 +0000 (22:29 +0000)]
(copy_internal): Remove -r warning; no longer needed.

22 years ago(COPY_CONTENTS_OPTION): New enum value.
Jim Meyering [Sun, 3 Mar 2002 22:28:48 +0000 (22:28 +0000)]
(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.

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 09:57:20 +0000 (09:57 +0000)]
.

22 years ago.
Jim Meyering [Sun, 3 Mar 2002 09:54:53 +0000 (09:54 +0000)]
.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:43:10 +0000 (17:43 +0000)]
.

22 years agoReflect changed semantics of cp's -r option.
Jim Meyering [Sat, 2 Mar 2002 17:42:45 +0000 (17:42 +0000)]
Reflect changed semantics of cp's -r option.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:39:58 +0000 (17:39 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:39:26 +0000 (17:39 +0000)]
*** empty log message ***

22 years ago(strnlen): Define-away/undef so that an inconsistent prototype in
Jim Meyering [Sat, 2 Mar 2002 17:39:17 +0000 (17:39 +0000)]
(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.

22 years ago.
Jim Meyering [Sat, 2 Mar 2002 17:37:50 +0000 (17:37 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 17:36:04 +0000 (17:36 +0000)]
*** empty log message ***

22 years ago(cp invocation): Document that cp -r
Jim Meyering [Sat, 2 Mar 2002 17:35:39 +0000 (17:35 +0000)]
(cp invocation): Document that cp -r
preserves symlinks.  Emphasize non-portability of cp -r.

22 years ago(main): Warn when -r is specified before --archive (-a).
Jim Meyering [Sat, 2 Mar 2002 17:23:34 +0000 (17:23 +0000)]
(main): Warn when -r is specified before --archive (-a).

22 years agoadd a comment
Jim Meyering [Sat, 2 Mar 2002 17:17:49 +0000 (17:17 +0000)]
add a comment

22 years ago(copy_internal): For each symlink copied by cp -r,
Jim Meyering [Sat, 2 Mar 2002 17:16:42 +0000 (17:16 +0000)]
(copy_internal): For each symlink copied by cp -r,
issue a warning that `cp -r' is not portable.

22 years ago(main): Revert change of 2001-12-29. With this change,
Jim Meyering [Sat, 2 Mar 2002 17:15:42 +0000 (17:15 +0000)]
(main): Revert change of 2001-12-29.  With this change,
cp -r once again preserves symlinks.
(usage): Document the original (now-restored) behavior.

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 16:44:07 +0000 (16:44 +0000)]
*** empty log message ***

22 years ago(main): Fail if -r is specified after --archive (-a) on the command line.
Jim Meyering [Sat, 2 Mar 2002 16:44:02 +0000 (16:44 +0000)]
(main): Fail if -r is specified after --archive (-a) on the command line.

22 years agobe careful about leading/trailing spaces
Jim Meyering [Sat, 2 Mar 2002 13:24:46 +0000 (13:24 +0000)]
be careful about leading/trailing spaces

22 years ago*** empty log message ***
Jim Meyering [Sat, 2 Mar 2002 08:38:57 +0000 (08:38 +0000)]
*** empty log message ***

22 years ago(copy_reg): Detect abuse of a race condition
Jim Meyering [Sat, 2 Mar 2002 08:38:47 +0000 (08:38 +0000)]
(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.

22 years agoInclude timespec.h.
Jim Meyering [Fri, 1 Mar 2002 23:57:21 +0000 (23:57 +0000)]
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.

22 years ago*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:54:58 +0000 (23:54 +0000)]
*** empty log message ***

22 years ago(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.
Jim Meyering [Fri, 1 Mar 2002 23:54:52 +0000 (23:54 +0000)]
(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.

22 years ago.
Jim Meyering [Fri, 1 Mar 2002 23:36:30 +0000 (23:36 +0000)]
.

22 years ago(strftime-check): Add `N'.
Jim Meyering [Fri, 1 Mar 2002 23:35:58 +0000 (23:35 +0000)]
(strftime-check): Add `N'.

22 years ago(Time directives): Add %N for nanoseconds.
Jim Meyering [Fri, 1 Mar 2002 23:35:00 +0000 (23:35 +0000)]
(Time directives): Add %N for nanoseconds.
This documents the recent change to 'ls'.

22 years agoreflect renaming: nanosleep.h -> timespec.h
Jim Meyering [Fri, 1 Mar 2002 23:34:23 +0000 (23:34 +0000)]
reflect renaming: nanosleep.h -> timespec.h

22 years ago*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:29:32 +0000 (23:29 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:28:21 +0000 (23:28 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:26:26 +0000 (23:26 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Do not replace stime; no longer used.
Jim Meyering [Fri, 1 Mar 2002 23:26:10 +0000 (23:26 +0000)]
(jm_MACROS): Do not replace stime; no longer used.
Check for clock_settime.

22 years ago*** empty log message ***
Jim Meyering [Fri, 1 Mar 2002 23:21:09 +0000 (23:21 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Fri, 1 Mar 2002 23:21:01 +0000 (23:21 +0000)]
.

22 years ago(libfetish_a_SOURCES): Add gettime.c, settime.c,
Jim Meyering [Fri, 1 Mar 2002 23:20:53 +0000 (23:20 +0000)]
(libfetish_a_SOURCES): Add gettime.c, settime.c,
timespec.h.  Remove nanosleep.h.

22 years agonew file, from Paul Eggert
Jim Meyering [Fri, 1 Mar 2002 23:20:20 +0000 (23:20 +0000)]
new file, from Paul Eggert

22 years agoReflect renaming: nanosleep.h -> timespec.h.
Jim Meyering [Fri, 1 Mar 2002 23:19:28 +0000 (23:19 +0000)]
Reflect renaming: nanosleep.h -> timespec.h.

22 years agonew macros/decls, from Paul Eggert
Jim Meyering [Fri, 1 Mar 2002 23:16:55 +0000 (23:16 +0000)]
new macros/decls, from Paul Eggert

22 years agorenamed from nanosleep.h
Jim Meyering [Fri, 1 Mar 2002 23:15:29 +0000 (23:15 +0000)]
renamed from nanosleep.h

22 years ago(decode_switches, usage): Add --time-style=+FORMAT.
Jim Meyering [Thu, 28 Feb 2002 08:34:43 +0000 (08:34 +0000)]
(decode_switches, usage): Add --time-style=+FORMAT.

22 years ago*** empty log message ***
Jim Meyering [Thu, 28 Feb 2002 08:30:31 +0000 (08:30 +0000)]
*** empty log message ***

22 years ago(pr invocation): Reword to avoid using `:'
Jim Meyering [Thu, 28 Feb 2002 08:30:19 +0000 (08:30 +0000)]
(pr invocation): Reword to avoid using `:'
in an @opindex entry -- info doesn't permit it.

22 years ago*** empty log message ***
Jim Meyering [Thu, 28 Feb 2002 08:20:05 +0000 (08:20 +0000)]
*** empty log message ***

22 years ago(Formatting file timestamps): Document new
Jim Meyering [Thu, 28 Feb 2002 08:19:50 +0000 (08:19 +0000)]
(Formatting file timestamps): Document new
time-formatting method: --time-style=+FORMAT.

22 years ago.
Jim Meyering [Tue, 26 Feb 2002 16:03:24 +0000 (16:03 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:48:03 +0000 (15:48 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:39:27 +0000 (15:39 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:38:49 +0000 (15:38 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:22:22 +0000 (15:22 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:22:09 +0000 (15:22 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:21:39 +0000 (15:21 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 15:21:11 +0000 (15:21 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Require AC_FUNC_ACL.
Jim Meyering [Tue, 26 Feb 2002 15:20:39 +0000 (15:20 +0000)]
(jm_MACROS): Require AC_FUNC_ACL.
Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.

22 years agoInclude "acl.h" rather than <sys/acl.h>.
Jim Meyering [Tue, 26 Feb 2002 15:20:00 +0000 (15:20 +0000)]
Include "acl.h" rather than <sys/acl.h>.
(USE_ACL): Remove; replaced by HAVE_ACL everywhere.
(gobble_file): Use file_has_acl rather than doing it ourselves.

22 years ago*** empty log message ***
Jim Meyering [Tue, 26 Feb 2002 14:53:28 +0000 (14:53 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add acl.h, acl.c.
Jim Meyering [Tue, 26 Feb 2002 14:53:18 +0000 (14:53 +0000)]
(libfetish_a_SOURCES): Add acl.h, acl.c.

22 years ago.
Jim Meyering [Tue, 26 Feb 2002 14:06:55 +0000 (14:06 +0000)]
.

22 years agotweak comment
Jim Meyering [Tue, 26 Feb 2002 08:32:56 +0000 (08:32 +0000)]
tweak comment

22 years agolatest from FSF
Jim Meyering [Mon, 25 Feb 2002 12:11:03 +0000 (12:11 +0000)]
latest from FSF

22 years ago*** empty log message ***
Jim Meyering [Sun, 24 Feb 2002 17:24:29 +0000 (17:24 +0000)]
*** empty log message ***

22 years agoInclude posixver.h.
Jim Meyering [Sun, 24 Feb 2002 17:24:06 +0000 (17:24 +0000)]
Include posixver.h.

22 years ago(DISTFILES.common): Add remove-potcdate.sin.
Jim Meyering [Sat, 23 Feb 2002 09:16:44 +0000 (09:16 +0000)]
(DISTFILES.common): Add remove-potcdate.sin.
(.SUFFIXES): Add .sed and .sin.
(.sin.sed): New rule.
($(DOMAIN).pot-update): Depend on remove-potcdate.sed. If the old
POT file exists and the new POT file differs from it only in the
first POT-Creation-Date line, keep the old POT file. So the PO files
don't need to be remade, and automake's "distcheck" target succeeds.
(mostlyclean): Remove remove-potcdate.sed and additional temporary
files.

22 years ago.
Jim Meyering [Sat, 23 Feb 2002 09:16:02 +0000 (09:16 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 23 Feb 2002 09:15:45 +0000 (09:15 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sat, 23 Feb 2002 09:14:52 +0000 (09:14 +0000)]
.

22 years ago(simple_cat, cat, main): Used char * rather than
Jim Meyering [Sat, 23 Feb 2002 09:12:20 +0000 (09:12 +0000)]
(simple_cat, cat, main): Used char * rather than
unsigned char *, to avoid some technical violations of the C
standard, and to avoid the need for casts.  I guess the
unsigned char * was probably there for improved performance
with ancient compilers, but the code wasn't using the
unsignedness any more.
Reported by Nelson H. F. Beebe.

(cat): int -> size_t for full_write arg.  This doesn't
fix any bugs since the buffer size is small, but it makes
the code a bit clearer.

22 years ago*** empty log message ***
Jim Meyering [Sat, 23 Feb 2002 09:02:23 +0000 (09:02 +0000)]
*** empty log message ***

22 years ago(xpath_concat): Reorder code to pacify
Jim Meyering [Sat, 23 Feb 2002 09:02:18 +0000 (09:02 +0000)]
(xpath_concat): Reorder code to pacify
compilers that don't know that xalloc_die never returns.

22 years ago*** empty log message ***
Jim Meyering [Wed, 20 Feb 2002 16:09:14 +0000 (16:09 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Wed, 20 Feb 2002 16:06:29 +0000 (16:06 +0000)]
*** empty log message ***

22 years agoInclude posixver.h.
Jim Meyering [Wed, 20 Feb 2002 16:06:20 +0000 (16:06 +0000)]
Include posixver.h.
(usage): Document only the intersection of the old and new behaviors,
to encourage portability.
(main): Use `posix2_version ()' in place of POSIX2_VERSION.

22 years ago*** empty log message ***
Jim Meyering [Tue, 19 Feb 2002 20:41:18 +0000 (20:41 +0000)]
*** empty log message ***

22 years ago(seq invocation): In the example, use "tail
Jim Meyering [Tue, 19 Feb 2002 20:41:13 +0000 (20:41 +0000)]
(seq invocation): In the example, use "tail
-n 3", not "tail -3", to conform to POSIX 1003.1-2001.

22 years agoupdate due to modified mk-script TEXTUTILS-2_0_21
Jim Meyering [Mon, 18 Feb 2002 12:41:49 +0000 (12:41 +0000)]
update due to modified mk-script

22 years ago.
Jim Meyering [Mon, 18 Feb 2002 12:40:53 +0000 (12:40 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:39:48 +0000 (12:39 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:39:42 +0000 (12:39 +0000)]
*** empty log message ***

22 years ago(test_vector): Rename tests of obsolete usage to have prefix of `obs'.
Jim Meyering [Mon, 18 Feb 2002 12:39:19 +0000 (12:39 +0000)]
(test_vector): Rename tests of obsolete usage to have prefix of `obs'.
For tests matching /^obs/,
put _POSIX2_VERSION=199209 in the environment, so the tests succeed
even when the environment would have contained _POSIX2_VERSION=200112.

22 years ago*** empty log message ***
Jim Meyering [Mon, 18 Feb 2002 12:35:15 +0000 (12:35 +0000)]
*** empty log message ***