2000-01-04 15:11:03 +00:00
|
|
|
|
2000-01-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint (PREV_VERSION): Tweak so it handles e.g., 2.0a -> 2.0.
|
|
|
|
|
|
(alpha): Create xdelta diffs.
|
|
|
|
|
|
|
2000-01-02 07:41:02 +00:00
|
|
|
|
2000-01-02 Jim Meyering <meyering@ascend.com>
|
2000-01-02 09:11:55 +00:00
|
|
|
|
|
2000-01-02 09:13:17 +00:00
|
|
|
|
* Version 4.0m.
|
2000-01-02 09:12:55 +00:00
|
|
|
|
|
2000-01-02 09:11:55 +00:00
|
|
|
|
* src/mv.c: New option: --strip-trailing-slashes.
|
|
|
|
|
|
|
2000-01-02 07:41:02 +00:00
|
|
|
|
1999-11-18 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strftime.c (my_strftime): Some old compilers object to
|
|
|
|
|
|
'\a', so don't bother optimizing for it.
|
|
|
|
|
|
|
|
|
|
|
|
2000-01-01 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Fix bug: `df PATH' sometimes misbehaves when there is an
|
|
|
|
|
|
inaccessible mount point unrelated to PATH.
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Add realpath, resolvepath.
|
|
|
|
|
|
* src/df.c (#pragma alloca): Add if _AIX is defined.
|
|
|
|
|
|
(path-concat.h): Include.
|
|
|
|
|
|
(show_point): If HAVE_REALPATH or HAVE_RESOLVEPATH is defined,
|
|
|
|
|
|
find the real absolute path for PATH, and use that to find the
|
|
|
|
|
|
mount point.
|
|
|
|
|
|
|
|
|
|
|
|
(show_point): Prefer non-dummy entries in shortcuts, too.
|
|
|
|
|
|
Disable bogus mount dirs instead of restatting them each time.
|
|
|
|
|
|
|
|
|
|
|
|
1999-12-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
1999-12-17 Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>
|
1999-12-30 09:07:31 +00:00
|
|
|
|
|
|
|
|
|
|
* src/rmdir.c (remove_parents, main): Don't pass errno to error
|
|
|
|
|
|
when printing "removing directory" message. Failure of rmdir is
|
|
|
|
|
|
handled elsewhere.
|
|
|
|
|
|
|
1999-12-23 09:34:57 +00:00
|
|
|
|
1999-12-23 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-12-23 11:54:36 +00:00
|
|
|
|
* configure.in: Remove clock_gettime tests.
|
|
|
|
|
|
Now they're in m4/jm-macros.m4.
|
|
|
|
|
|
|
1999-12-23 09:34:57 +00:00
|
|
|
|
* src/ln.c (usage): Correct typos.
|
|
|
|
|
|
List new --target-directory=... usage.
|
|
|
|
|
|
Reported by G<>ran Uddeborg
|
|
|
|
|
|
|
|
|
|
|
|
* src/mv.c (usage): List new --target-directory=... usage.
|
|
|
|
|
|
|
1999-12-22 11:14:30 +00:00
|
|
|
|
1999-12-22 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/getdate.y (get_date): Fix typo in time_t overflow test.
|
|
|
|
|
|
From Michael Stone.
|
|
|
|
|
|
|
1999-12-22 14:30:45 +00:00
|
|
|
|
1999-12-21 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/shred/remove: Use $file, not $tmp/file. Exit 77 if run as
|
|
|
|
|
|
root.
|
|
|
|
|
|
|
1999-12-22 16:32:24 +00:00
|
|
|
|
1999-12-20 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (ceil_percent): Remove.
|
|
|
|
|
|
(show_dev): Avoid overflow problems when calculating percent.
|
|
|
|
|
|
Do not display negative percents.
|
|
|
|
|
|
|
1999-12-19 10:23:47 +00:00
|
|
|
|
1999-12-19 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-12-19 10:43:18 +00:00
|
|
|
|
* Version 4.0l.
|
|
|
|
|
|
|
1999-12-19 10:49:15 +00:00
|
|
|
|
* doc/fileutils.texi: Clarify and combine descriptions of -c and of
|
|
|
|
|
|
--time=ctime.
|
|
|
|
|
|
Likewise for -u/--time=atime.
|
|
|
|
|
|
|
1999-12-19 10:23:47 +00:00
|
|
|
|
* src/ls.c [! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Use lstat wrapper.
|
|
|
|
|
|
[Notice the new configure-time test in m4/lstat-slash.m4. ]
|
|
|
|
|
|
(main): Back out change from 1999-02-19 that made ls remove
|
|
|
|
|
|
trailing slashes from command line arguments to accommodate early
|
|
|
|
|
|
versions of Linux. Now, `ls symlink-to-dir/' acts like
|
|
|
|
|
|
`ls symlink-to-dir/.' thus following the symbolic link, as POSIX says
|
|
|
|
|
|
it should. Suggestion from Bruno Haible and Andreas Schwab.
|
|
|
|
|
|
|
1999-12-19 10:49:15 +00:00
|
|
|
|
* lib/xstat.in (slash_aware_lstat): New function.
|
|
|
|
|
|
(rpl_@xstat@): Use it.
|
|
|
|
|
|
* lib/Makefile.am (lstat.c): Adapt rule to handle new parts of xstat.in.
|
|
|
|
|
|
(lstat.c): Likewise.
|
|
|
|
|
|
|
1999-12-19 10:23:47 +00:00
|
|
|
|
Make sure ls does the right thing with symlinks and trailing slashes.
|
|
|
|
|
|
* tests/ls/Makefile.am (TESTS): Add symlink-slash.
|
|
|
|
|
|
* tests/ls/symlink-slash: New test, for above-fixed bug.
|
|
|
|
|
|
|
|
|
|
|
|
1999-12-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (wipename): When repeatedly renaming a file, making the
|
|
|
|
|
|
name shorter and shorter, skip to the next shorter length length if a
|
|
|
|
|
|
rename fails (e.g. due to permission denied). Otherwise, this loop
|
|
|
|
|
|
would iterate for so long that shred would appear to be stuck in an
|
|
|
|
|
|
infinite loop for any but the shortest file names.
|
|
|
|
|
|
Reported by Joe Orton.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/shred/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add shred.
|
|
|
|
|
|
* tests/shred: New directory
|
|
|
|
|
|
* tests/shred/remove: New file. Tests for the above-fixed bug.
|
|
|
|
|
|
|
1999-12-13 06:45:13 +00:00
|
|
|
|
1999-12-13 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-12-19 10:23:47 +00:00
|
|
|
|
* lib/makepath.c (make_path): Consistently use `error' to output
|
1999-12-13 07:33:13 +00:00
|
|
|
|
the verbose, `created directory ...' messages.
|
|
|
|
|
|
Reported by Bernhard Rosenkraenzer.
|
1999-12-13 06:45:13 +00:00
|
|
|
|
|
|
|
|
|
|
1999-12-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
Move 120+ lines of stat.h-related macros from system.h (not shared)
|
|
|
|
|
|
to sys2.h, which is shared between fileutils, sh-utils, textutils.
|
|
|
|
|
|
* src/system.h: Move them from here...
|
|
|
|
|
|
* src/sys2.h: ... to here.
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h (S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Define
|
|
|
|
|
|
if not defined. This was necessary on a NeXT Turbostation running
|
|
|
|
|
|
Mach 3.3. Reported by Nelson H. F. Beebe.
|
|
|
|
|
|
|
1999-12-13 07:33:13 +00:00
|
|
|
|
* src/ls.c (decode_switches): If -c or -u is specified and not -l
|
|
|
|
|
|
(or any other option that implies -l), and no sort-type was specified,
|
|
|
|
|
|
then sort by the ctime (-c) or atime (-u). Part of this change reverts
|
|
|
|
|
|
the 1998-01-10 delta.
|
|
|
|
|
|
(usage): Update to reflect this change.
|
1999-12-13 06:45:13 +00:00
|
|
|
|
Reported by Paul Slootman via Michael Stone.
|
|
|
|
|
|
|
1999-12-09 16:38:32 +00:00
|
|
|
|
1999-12-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
|
|
|
|
|
|
these and use them instead of `CHAR_MAX + n'.
|
|
|
|
|
|
* src/du.c (BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):
|
|
|
|
|
|
Likewise.
|
|
|
|
|
|
* src/touch.c (TIME_OPTION): Likewise.
|
|
|
|
|
|
* src/rmdir.c (IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls/time-1: Test more of the framework (touch's -a and -m
|
|
|
|
|
|
options) before running the actual ls test.
|
|
|
|
|
|
|
|
|
|
|
|
1999-12-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/cp/cp-mv-backup: Use 1>&2 rather than `1<&-'.
|
|
|
|
|
|
Suggestion from Volker Borchert.
|
|
|
|
|
|
|
|
|
|
|
|
1999-12-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint: Remove ftp.enst.fr.
|
|
|
|
|
|
|
1999-12-04 17:31:29 +00:00
|
|
|
|
1999-12-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-12-05 15:14:18 +00:00
|
|
|
|
* Version 4.0k.
|
|
|
|
|
|
|
1999-12-05 15:13:40 +00:00
|
|
|
|
* tests/mv/into-self-2: Adapt to reflect this change in behavior.
|
|
|
|
|
|
Make sure the VERSION_CONTROL envvar is not set.
|
|
|
|
|
|
Run diff if comparison fails.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): In move mode, if the rename attempt
|
|
|
|
|
|
fails, then unlink any existing destination file. This makes a
|
|
|
|
|
|
cross-device `mv' more consistent with the intra-device behavior.
|
|
|
|
|
|
This change is required by POSIX to make a cross-device move act with
|
|
|
|
|
|
semantics similar to those of the rename syscall. For example now
|
|
|
|
|
|
`mv' can move a file onto a symlink to itself when that symlink
|
|
|
|
|
|
is on a separate partition. With fileutils-4.0j, it would fail with
|
|
|
|
|
|
a diagnostic saying they were the same file.
|
|
|
|
|
|
Reported by Bruno Haible.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/to-symlink: New file. Adds test for the above.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add to-symlink.
|
1999-12-04 17:34:39 +00:00
|
|
|
|
|
1999-12-04 17:34:05 +00:00
|
|
|
|
* tests/cp/cp-mv-backup (trap): Be careful to close $actual before
|
|
|
|
|
|
removing the containing directory. Otherwise, on some systems rmdir
|
|
|
|
|
|
fails to remove the containing directory.
|
|
|
|
|
|
|
1999-12-04 17:31:29 +00:00
|
|
|
|
* tests/ls/time-1: List --full-time dates upon failure.
|
|
|
|
|
|
|
|
|
|
|
|
1999-12-02 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (check_symlink_color): New variable.
|
|
|
|
|
|
(main): Set it if we need to check for dangling symlinks when
|
|
|
|
|
|
displaying colors.
|
|
|
|
|
|
(gobble_file): Check check_symlink_color instead of print_with_color.
|
|
|
|
|
|
|
|
|
|
|
|
1999-11-30 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (usage): Shorten help for --show-control-chars.
|
|
|
|
|
|
|
|
|
|
|
|
1999-11-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
Give the right diagnostic when failing to create a file in an
|
|
|
|
|
|
unwritable directory.
|
|
|
|
|
|
* src/touch.c (touch): Record errno upon failed errno and use that
|
|
|
|
|
|
saved value if a subsequent fstat, stat or utime call fails.
|
|
|
|
|
|
Reported by Wichert Akkerman via Michael Stone.
|
|
|
|
|
|
|
1999-11-27 09:01:05 +00:00
|
|
|
|
1999-11-27 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-12-04 17:31:29 +00:00
|
|
|
|
Clean up test scripts.
|
1999-11-27 10:15:46 +00:00
|
|
|
|
* tests/mv/setup: Don't set/use DF or MKDIR. Use df and mkdir instead.
|
|
|
|
|
|
* tests/mv/mv-special-1: Likewise for these: LS MV MKDIR MKNOD RM TOUCH
|
|
|
|
|
|
* tests/mv/backup-is-src: Likewise for RM and MV.
|
|
|
|
|
|
* tests/mv/hard-link-1: Likewise.
|
|
|
|
|
|
* tests/mv/into-self: Likewise.
|
|
|
|
|
|
* tests/mv/into-self-3: Likewise.
|
|
|
|
|
|
|
1999-11-27 10:05:25 +00:00
|
|
|
|
Add test for 1999-05-23 change to src/copy.c (copy_internal).
|
|
|
|
|
|
* tests/mv/partition-perm: New file.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add partition-perm.
|
|
|
|
|
|
|
1999-11-27 09:01:22 +00:00
|
|
|
|
* Version 4.0j.
|
1999-11-27 09:01:05 +00:00
|
|
|
|
|
1999-11-26 16:50:33 +00:00
|
|
|
|
1999-11-22 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (df_readable): Now returns char const *, not char *.
|
|
|
|
|
|
New arg NEGATIVE.
|
|
|
|
|
|
(ceil_percent): Now returns double, not int.
|
|
|
|
|
|
Be more careful about adding 1 to a wild value.
|
|
|
|
|
|
(show_dev): Don't filter out wild sizes from the underlying operating
|
|
|
|
|
|
system; instead, show them to the user as faithfully as possible.
|
|
|
|
|
|
|
1999-11-23 12:57:38 +00:00
|
|
|
|
1999-11-23 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* doc/getdate.texi (Calendar date item): Correction regarding 0..68/
|
|
|
|
|
|
69-99 split for 1900 vs 2000. From Peter Moulder.
|
|
|
|
|
|
|
1999-11-22 15:05:52 +00:00
|
|
|
|
1999-11-22 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c.
|
|
|
|
|
|
|
1999-11-20 09:51:31 +00:00
|
|
|
|
1999-11-20 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-20 12:16:11 +00:00
|
|
|
|
* src/rmdir.c (errno_rmdir_non_empty): New function to encapsulate
|
|
|
|
|
|
errno comparison.
|
|
|
|
|
|
(remove_parents): Use it.
|
|
|
|
|
|
(main): Use it.
|
|
|
|
|
|
|
1999-11-20 10:46:39 +00:00
|
|
|
|
* tests/cp/cp-mv-backup: Run `diff -c' if the test fails.
|
|
|
|
|
|
|
1999-11-20 10:39:29 +00:00
|
|
|
|
* tests/ls/time-1: Use `ls' and `touch', not $LS and $TOUCH.
|
|
|
|
|
|
* tests/ls/Makefile.am (TESTS_ENVIRONMENT): Specify PATH, etc.
|
|
|
|
|
|
|
1999-11-20 09:51:31 +00:00
|
|
|
|
* src/chgrp.c: Declare lstat; needed on e.g. SunOS4.
|
|
|
|
|
|
Reported by Tom Tromey.
|
|
|
|
|
|
|
1999-11-19 11:12:07 +00:00
|
|
|
|
1999-11-19 Jim Meyering <meyering@ascend.com>
|
1999-11-17 08:18:22 +00:00
|
|
|
|
|
1999-11-19 17:02:31 +00:00
|
|
|
|
* lib/strstr.c (strstr): Include config.h.
|
|
|
|
|
|
Add a `;' between shloop label and `}'.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-11-19 11:12:07 +00:00
|
|
|
|
1999-11-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-17 08:18:22 +00:00
|
|
|
|
* src/mkdir.c (S_IRWXUGO): Define if necessary.
|
|
|
|
|
|
(main): Use chmod to set the permissions if bits other than those
|
|
|
|
|
|
of S_IRWXUGO were requested. Reported by Sami Farin.
|
|
|
|
|
|
|
|
|
|
|
|
1999-11-14 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* touch.c (touch): Simplify code a tad, using fd == -1 instead
|
|
|
|
|
|
of separate valid_fd variable.
|
|
|
|
|
|
|
1999-11-13 13:28:39 +00:00
|
|
|
|
1999-11-13 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-13 23:21:01 +00:00
|
|
|
|
* src/touch.c (touch): Don't fail just because we couldn't open
|
|
|
|
|
|
an existing file. This makes it so that touching a read-only
|
|
|
|
|
|
file now works. Also clean up and simplify.
|
|
|
|
|
|
Based on a patch from Chip Salzenberg.
|
1999-11-13 13:28:39 +00:00
|
|
|
|
* tests/touch/no-rights: New test for this.
|
|
|
|
|
|
* tests/touch/Makefile.am (TESTS): Add no-rights.
|
|
|
|
|
|
|
1999-11-12 10:54:21 +00:00
|
|
|
|
1999-11-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/remove.c (print_nth_dir): Write one fewer byte so we don't print
|
|
|
|
|
|
a trailing slash.
|
1999-11-13 13:28:39 +00:00
|
|
|
|
(rm): Fix bugs in (and test, this time) the very rarely used code
|
1999-11-12 10:54:21 +00:00
|
|
|
|
to warn about directory cycles.
|
|
|
|
|
|
Reported by michael@roka.net.
|
|
|
|
|
|
|
1999-11-11 12:12:23 +00:00
|
|
|
|
1999-11-11 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Treat src and dest as the `same' in
|
|
|
|
|
|
`mv src symlink-to-src' when src and dest are on different partitions.
|
|
|
|
|
|
Otherwise, that `mv' command would silently remove `src'.
|
|
|
|
|
|
Reported by Michael Stone.
|
1999-11-11 13:46:40 +00:00
|
|
|
|
* tests/mv/into-self-2: Add a test for this fix.
|
1999-11-11 12:12:23 +00:00
|
|
|
|
|
1999-11-12 08:05:20 +00:00
|
|
|
|
* lib/makepath.c (make_path): Fix long-latent bug: s/&&/||/ (others
|
|
|
|
|
|
just like that also dated back to 1992 were fixed in 1998-01-02).
|
|
|
|
|
|
Richard Braakman reported that using `install -d -g foo 1/2`
|
1999-11-11 12:12:23 +00:00
|
|
|
|
only sets the group on the intermediate directory, not the final
|
|
|
|
|
|
component. From Michael Stone.
|
|
|
|
|
|
|
1999-11-07 21:06:17 +00:00
|
|
|
|
1999-11-07 Paul Eggert <eggert@set.twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* human.c (default_block_size): New function.
|
|
|
|
|
|
(humblock): Use it if no block size is specified.
|
|
|
|
|
|
(human_block_size): If the specified block size is zero, report an
|
|
|
|
|
|
error if report_errors is nonzero; otherwise use the default.
|
|
|
|
|
|
|
1999-11-07 09:22:18 +00:00
|
|
|
|
1999-11-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-07 20:34:11 +00:00
|
|
|
|
* src/dircolors.hin: Add several more TERM types.
|
|
|
|
|
|
Add .bz2 suffix.
|
|
|
|
|
|
Add .png for real this time.
|
|
|
|
|
|
Change the image types colors to be visible in a black-on-white xterm.
|
1999-11-12 08:10:02 +00:00
|
|
|
|
From Michael Stone.
|
1999-11-07 20:34:11 +00:00
|
|
|
|
|
|
|
|
|
|
* src/chgrp.c (xstat): New global.
|
|
|
|
|
|
(main): Define it.
|
|
|
|
|
|
(change_file_group): Use it. Before this change, when running chgrp
|
|
|
|
|
|
on a symlink without --dereference (-h) and when the requested group
|
|
|
|
|
|
is the same as the group for the *symlink*, chgrp would do nothing.
|
|
|
|
|
|
Now it changes the group of the file referenced through the symlink.
|
|
|
|
|
|
Reported by Martin Mitchell.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chmod.c: Use REFERENCE_FILE_OPTION instead of bare `CHAR_MAX + 1'.
|
|
|
|
|
|
* src/chown.c: Define and use REFERENCE_FILE_OPTION and
|
|
|
|
|
|
DEREFERENCE_OPTION in place of bare `CHAR_MAX + N'.
|
|
|
|
|
|
* src/chgrp.c: Likewise.
|
|
|
|
|
|
|
1999-11-07 11:46:24 +00:00
|
|
|
|
* tests/ln/misc: Add hard-link-to-symlink test.
|
|
|
|
|
|
Move framework_failure test to the end.
|
|
|
|
|
|
Fix a typo: s/||/&&/.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ln.c (do_link): Warn that making a hard link to a symbolic link
|
|
|
|
|
|
is not portable.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ln/misc: Use --b=simple, not the now-deprecated `-V simple'.
|
|
|
|
|
|
* tests/ln/backup-1: Likewise.
|
|
|
|
|
|
|
1999-12-19 10:23:47 +00:00
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/rmdir/Makefile.
|
1999-11-07 10:33:11 +00:00
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add rmdir.
|
|
|
|
|
|
* tests/rmdir: New directory
|
|
|
|
|
|
* tests/rmdir/ignore: New file.
|
|
|
|
|
|
|
1999-11-07 09:22:18 +00:00
|
|
|
|
* src/rmdir.c (remove_parents): Use the correct test (just as in
|
|
|
|
|
|
main) in handling --ignore-fail-on-non-empty. From Michael Stone.
|
|
|
|
|
|
(usage): Improve description of --parents. Based on suggestion from
|
|
|
|
|
|
Torsten Landschoff.
|
|
|
|
|
|
|
1999-11-06 09:55:32 +00:00
|
|
|
|
1999-11-06 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-07 11:46:24 +00:00
|
|
|
|
Allow hard links to symlinks on systems that support it.
|
|
|
|
|
|
* src/ln.c (STAT_LIKE_LINK): Define.
|
|
|
|
|
|
(do_link): Use STAT_LIKE_LINK, rather than bare `stat', and perform
|
|
|
|
|
|
the extra lstat only on systems where LINK_FOLLOWS_SYMLINKS.
|
1999-11-07 09:22:18 +00:00
|
|
|
|
|
1999-11-06 09:55:32 +00:00
|
|
|
|
* src/ls.c (long_options): Correct typo (s/'F'/'p'/) so that `-p' is
|
|
|
|
|
|
accepted as the short form of --file-type, per the documentation.
|
1999-11-07 20:34:11 +00:00
|
|
|
|
From James Sneeringer.
|
1999-11-06 09:55:32 +00:00
|
|
|
|
|
1999-11-07 09:22:18 +00:00
|
|
|
|
* src/ln.c (do_link): Fix typo (in which the function name `symlink'
|
|
|
|
|
|
was tested instead of the variable `symbolic_link') that could make
|
|
|
|
|
|
ln perform an unneeded `stat' call.
|
|
|
|
|
|
|
1999-11-06 09:55:32 +00:00
|
|
|
|
1999-11-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated
|
|
|
|
|
|
HAVE_ST_BLOCKS.
|
|
|
|
|
|
* src/copy.c: Likewise.
|
|
|
|
|
|
* lib/fileblocks.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Move some type/header/member tests into
|
|
|
|
|
|
m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of
|
|
|
|
|
|
fileutils, textutils, and sh-utils.
|
|
|
|
|
|
|
1999-11-02 07:20:28 +00:00
|
|
|
|
1999-11-02 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-06 09:55:32 +00:00
|
|
|
|
* man/help2man: Import version 1.018.
|
|
|
|
|
|
* man/Makefile.maint ($(man_MANS)): Remove use of --name=... option.
|
|
|
|
|
|
* man/*.x: Include one-line summary in [NAME] section.
|
|
|
|
|
|
* man/Makefile.summ: Remove the one-line summaries.
|
|
|
|
|
|
Suggestion for clean-up from Akim Demaille.
|
|
|
|
|
|
|
1999-11-02 07:20:28 +00:00
|
|
|
|
* configure.in (ALL_LINGUAS): Add Galician (gl).
|
|
|
|
|
|
|
1999-11-01 09:53:13 +00:00
|
|
|
|
1999-11-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-11-02 07:20:28 +00:00
|
|
|
|
* src/cp.c (usage): Warn about mixing use of `-r' with FIFOs and
|
|
|
|
|
|
other special files like /dev/zero.
|
|
|
|
|
|
|
1999-11-01 09:53:13 +00:00
|
|
|
|
* lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
|
|
|
|
|
|
|
1999-10-31 07:43:07 +00:00
|
|
|
|
1999-10-31 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-10-31 11:43:22 +00:00
|
|
|
|
* Makefile.maint (my-distcheck): Remove $(DEPDIR) to work around
|
|
|
|
|
|
automake bug.
|
|
|
|
|
|
|
1999-10-31 07:43:07 +00:00
|
|
|
|
* doc/fileutils.texi: Document new --backup[=METHOD] option for
|
|
|
|
|
|
cp, mv, ln, and install.
|
1999-10-30 07:03:18 +00:00
|
|
|
|
|
|
|
|
|
|
* src/ln.c: Convert --backup to take an optional argument.
|
|
|
|
|
|
Deprecate --version-control (-V) in comments.
|
|
|
|
|
|
(usage): Remove mention of --version-control.
|
|
|
|
|
|
(main): Make -V warn then fall through into --backup case.
|
|
|
|
|
|
[--backup case]: Handle optional arg.
|
1999-10-31 07:43:07 +00:00
|
|
|
|
* src/install.c: Likewise.
|
1999-10-30 07:03:18 +00:00
|
|
|
|
|
|
|
|
|
|
1999-10-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp.c (do_copy): Constify `dest', and cast-away the new
|
|
|
|
|
|
const in assignment to new_dest.
|
|
|
|
|
|
|
1999-10-23 13:18:34 +00:00
|
|
|
|
1999-10-23 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/touch/Makefile.am (TESTS): Add dangling-symlink.
|
|
|
|
|
|
* tests/touch/dangling-symlink: New file.
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-23 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c (full_write): Remove unused decl.
|
|
|
|
|
|
(open_maybe_create): Remove.
|
|
|
|
|
|
(touch): Don't record whether the file was created; this isn't
|
|
|
|
|
|
possible to do reliably and portably without race conditions.
|
|
|
|
|
|
If the file was created and if amtime_now is nonzero, this
|
|
|
|
|
|
change means we'll have to do another utime system call, but
|
|
|
|
|
|
that's no more harmful than the previous version of this code.
|
1999-10-30 11:28:41 +00:00
|
|
|
|
Reported by Gabor Z. Papp.
|
1999-10-23 13:18:34 +00:00
|
|
|
|
|
|
|
|
|
|
1999-10-21 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add Japanese (pa).
|
|
|
|
|
|
|
1999-10-17 21:33:49 +00:00
|
|
|
|
1999-10-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/backup-is-src: Remove use of mv's now-deprecated
|
|
|
|
|
|
-V option. Use --b=simple instead of -b -V simple.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mv.c: Convert --backup to take an optional argument.
|
|
|
|
|
|
Deprecate --version-control (-V) in comments.
|
|
|
|
|
|
(usage): Remove mention of --version-control.
|
|
|
|
|
|
(main): Make -V warn then fall through into --backup case.
|
|
|
|
|
|
[--backup case]: Handle optional arg.
|
|
|
|
|
|
|
|
|
|
|
|
Accept new option: --target-directory=DIR
|
|
|
|
|
|
* src/cp.c (TARGET_DIRECTORY_OPTION): Define.
|
|
|
|
|
|
(SPARSE_OPTION): Define.
|
|
|
|
|
|
(usage): Describe it.
|
|
|
|
|
|
(do_copy): Change meanings/names of first two parameters: use `n_files'
|
|
|
|
|
|
in place of `argc - optind', and `file' instead of `argv + optind'.
|
|
|
|
|
|
Add parameter, target_directory.
|
|
|
|
|
|
(main): Pass new arg, target_directory.
|
|
|
|
|
|
|
1999-10-16 14:48:25 +00:00
|
|
|
|
1999-10-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/cp/backup-is-src: Remove use of cp's now-deprecated -V option.
|
|
|
|
|
|
Use --b=simple instead of -b -V simple.
|
1999-10-16 14:51:45 +00:00
|
|
|
|
* tests/cp/backup-1: Replace use of cp's now-deprecated
|
|
|
|
|
|
--version-control option with use of --backup=simple.
|
1999-10-16 14:48:25 +00:00
|
|
|
|
|
|
|
|
|
|
* src/cp.c: Convert --backup to take an optional argument.
|
|
|
|
|
|
Deprecate --version-control (-V) in comments.
|
|
|
|
|
|
(usage): Remove mention of --version-control.
|
|
|
|
|
|
(main): Make -V warn then fall through into --backup case.
|
|
|
|
|
|
[--backup case]: Handle optional arg.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/cp/Makefile.am (TESTS): Add cp-mv-backup.
|
|
|
|
|
|
* tests/cp/cp-mv-backup: New file.
|
|
|
|
|
|
|
1999-10-11 14:04:32 +00:00
|
|
|
|
1999-10-11 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/getopt.c: Merge changes from latest glibc.
|
|
|
|
|
|
* lib/getopt.h: Likewise.
|
|
|
|
|
|
* lib/getopt1.c: Likewise.
|
|
|
|
|
|
|
1999-10-09 13:22:57 +00:00
|
|
|
|
1999-10-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
Accept new option: --target-directory=DIR
|
|
|
|
|
|
* src/ln.c (TARGET_DIRECTORY_OPTION): Define.
|
|
|
|
|
|
(usage): Describe it.
|
|
|
|
|
|
(main): Implement it.
|
|
|
|
|
|
Make code clearer: use new variable `n_files' in place of
|
|
|
|
|
|
`argc - optind'. Use `file' instead of `argv + optind'.
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* depcomp: New file, for automake's new dependency support.
|
|
|
|
|
|
* missing: New version, from automake's user-dep-gen-branch.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xalloc.h (__attribute__): Apply 1999-10-03 change here, too.
|
|
|
|
|
|
* src/sys2.h (__attribute__): Likewise.
|
|
|
|
|
|
Wrap with #ifndef __attribute__.
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-03 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* getdate.y (__attribute__): Define to empty if GCC claims to
|
|
|
|
|
|
be before 2.8; this is needed for OPENStep 4.2 cc. Also,
|
|
|
|
|
|
define to empty if strict ANSI.
|
|
|
|
|
|
|
|
|
|
|
|
1999-10-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
Accept new option: --target-directory=DIR
|
|
|
|
|
|
* src/mv.c (TARGET_DIRECTORY_OPTION): Define.
|
|
|
|
|
|
(usage): Describe it.
|
|
|
|
|
|
(main): Implement it.
|
|
|
|
|
|
Remove unused variable, stdin_tty.
|
|
|
|
|
|
Make code clearer: use new variable `n_files' in place of
|
|
|
|
|
|
`argc - optind'. Use `file' instead of `argv + optind'.
|
|
|
|
|
|
|
1999-09-28 15:27:13 +00:00
|
|
|
|
1999-09-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-10-02 11:12:34 +00:00
|
|
|
|
* src/system.h: Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics.
|
|
|
|
|
|
Do the same for other config.h macros like CLOSEDIR_VOID and MAJOR_*.
|
|
|
|
|
|
* src/sys2.h: Likewise.
|
|
|
|
|
|
|
1999-09-28 15:27:13 +00:00
|
|
|
|
* lib/xalloc.h (__attribute__): Protect against redefinition.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-09-26 18:53:01 +00:00
|
|
|
|
1999-09-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-09-28 15:27:13 +00:00
|
|
|
|
* lib/xmalloc.c (xalloc_die): Rename from xalloc_fail and
|
|
|
|
|
|
update callers.
|
1999-09-26 22:36:11 +00:00
|
|
|
|
Use explicit exit to help avoid warnings.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-09-26 18:53:01 +00:00
|
|
|
|
* lib/path-concat.c (DIRECTORY_SEPARATOR): Define.
|
|
|
|
|
|
(ISSLASH): Define.
|
|
|
|
|
|
(path_concat): Allow parameter DIR to be NULL.
|
|
|
|
|
|
(xpath_concat): New function.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xalloc.h (__attribute__): Define.
|
|
|
|
|
|
(ATTRIBUTE_NORETURN): Define.
|
|
|
|
|
|
(xalloc_die): Declare.
|
|
|
|
|
|
(NEW): Define as yet unused macro.
|
|
|
|
|
|
(XFREE): Likewise
|
|
|
|
|
|
(CCLONE): Likewise.
|
|
|
|
|
|
(CLONE): Likewise.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/basename.c (base_name): Add prototype. From Akim Demaille.
|
|
|
|
|
|
|
1999-09-19 16:22:23 +00:00
|
|
|
|
1999-09-19 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-09-19 16:48:43 +00:00
|
|
|
|
* lib/lchown.c [STAT_MACROS_BROKEN] (S_ISLNK): Undefine.
|
|
|
|
|
|
(S_ISLNK): Define if necessary.
|
|
|
|
|
|
This is necessary on a NEC SX-4 with SUPER-UX 9.1.
|
|
|
|
|
|
Based on a patch from Holger Berger.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (siginfo_handler): Mark parameter with ATTRIBUTE_UNUSED.
|
|
|
|
|
|
Change many counter and index variables to be of unsigned type.
|
|
|
|
|
|
(dd_copy): Add new unsigned variable, n_bytes_read, in place of
|
|
|
|
|
|
many uses of `nread'.
|
|
|
|
|
|
|
1999-09-19 16:22:23 +00:00
|
|
|
|
* src/sys2.h (__attribute__): Define.
|
|
|
|
|
|
(ATTRIBUTE_NORETURN): Remove #else clause.
|
|
|
|
|
|
(ATTRIBUTE_UNUSED): Define.
|
|
|
|
|
|
|
1999-09-18 21:18:37 +00:00
|
|
|
|
1999-09-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_REPLACE_FUNCS): Remove strdup, now that this
|
|
|
|
|
|
is done in m4/jm-macros.m4.
|
|
|
|
|
|
|
|
|
|
|
|
1999-09-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c (usage): Remove misleading sentence in --help output.
|
|
|
|
|
|
From Karl Heuer.
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (EXTRAdir): Remove unused variable.
|
|
|
|
|
|
|
1999-09-05 06:56:59 +00:00
|
|
|
|
1999-09-03 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
|
|
|
|
|
|
Use EINVAL instead.
|
|
|
|
|
|
|
|
|
|
|
|
1999-09-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp.c: Remove declaration of xstrdup.
|
|
|
|
|
|
* src/df.c: Likewise.
|
|
|
|
|
|
* src/ls.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
1999-09-01 Akim Demaille <akim@epita.fr>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xmalloc.c (xalloc_fail_func): Use `PARAMS'.
|
|
|
|
|
|
* lib/xalloc.h (xalloc_fail_func): Likewise.
|
|
|
|
|
|
(xstrdup): Add protoype.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/version-etc.c (version_etc_copyright): Default copyright string.
|
|
|
|
|
|
(version_etc): Use it.
|
|
|
|
|
|
* lib/version-etc.h: Declare it.
|
|
|
|
|
|
|
1999-08-29 20:05:07 +00:00
|
|
|
|
1999-08-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-08-31 20:46:40 +00:00
|
|
|
|
* configure.in (AC_YACC): Remove use, now that we require bison.
|
|
|
|
|
|
|
1999-08-29 20:05:07 +00:00
|
|
|
|
* src/dircolors.hin: Add .rpm, .png, and .fli.
|
|
|
|
|
|
From Andres Soolo.
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-28 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* getdate.y: Add copyright notice.
|
|
|
|
|
|
|
|
|
|
|
|
(number): Handle `Nov 11 1996' example; see Risks Digest 20.55
|
|
|
|
|
|
http://catless.ncl.ac.uk/Risks/20.55.html#subj18
|
|
|
|
|
|
(1999-08-27)
|
|
|
|
|
|
|
|
|
|
|
|
(<stdio.h>): Include only if testing.
|
|
|
|
|
|
(ISUPPER): Remove.
|
|
|
|
|
|
(ISLOWER, PC): New macros.
|
|
|
|
|
|
(<string.h>): Include if HAVE_STRING_H, not USG.
|
|
|
|
|
|
(bcopy): Remove.
|
|
|
|
|
|
(yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
|
|
|
|
|
|
bison.
|
|
|
|
|
|
(EPOCH_YEAR): Renamed from EPOCH.
|
|
|
|
|
|
(table): Renamed from TABLE.
|
|
|
|
|
|
(meridian): Now an anonymous enum.
|
|
|
|
|
|
(struct parser_control): New type.
|
|
|
|
|
|
(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
|
|
|
|
|
|
(yyInput, ..., yyRelYear): Migrated into struct parser_control.
|
|
|
|
|
|
(%pure_parser): Added, so that the parser is pure.
|
|
|
|
|
|
(%union): Removed; the type is now just plain int.
|
|
|
|
|
|
All %type directives removed.
|
|
|
|
|
|
(tLOCAL_ZONE): New %token.
|
|
|
|
|
|
(month_day_table): Renamed from MonthDayTable.
|
|
|
|
|
|
(gmtime, localtime, mktime, time): Declare only if not defined.
|
|
|
|
|
|
(meridian_table): New table.
|
|
|
|
|
|
(dst_table): New table.
|
|
|
|
|
|
(units_table): renamed from UnitsTable.
|
|
|
|
|
|
(relative_time_table): Renamed from OtherTable.
|
|
|
|
|
|
(time_zone_table): Renamed from TimezoneTable. Modernized data.
|
|
|
|
|
|
(military_table): Renamed from MilitaryTable.
|
|
|
|
|
|
(to_hour): Renamed from ToHour.
|
|
|
|
|
|
(to_year): Renamed from ToYear.
|
|
|
|
|
|
(lookup_zone): New function.
|
|
|
|
|
|
(LookupWord): Renamed from lookup_word.
|
|
|
|
|
|
Use lookup_zone for time zones.
|
|
|
|
|
|
(yylex): Now reentrant. All callers changed.
|
|
|
|
|
|
(get_date): Add support for local time zone abbreviations.
|
|
|
|
|
|
Make it reentrant.
|
|
|
|
|
|
|
1999-08-22 08:47:00 +00:00
|
|
|
|
1999-08-22 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-08-22 10:22:06 +00:00
|
|
|
|
* src/sys2.h (IF_LINT): Define new macro.
|
|
|
|
|
|
* src/df.c (main): Rename locals i and j.
|
|
|
|
|
|
Use IF_LINT macro instead of #ifdef lint...
|
|
|
|
|
|
|
1999-08-22 08:47:00 +00:00
|
|
|
|
* src/dd.c (parse_integer): Add `const' to char* parameter and
|
|
|
|
|
|
add a separate `suffix' variable.
|
|
|
|
|
|
|
1999-08-20 08:58:40 +00:00
|
|
|
|
1999-08-20 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/chown.c (usage): Tweak --help output to make it more consistent
|
|
|
|
|
|
with that of chgrp.
|
|
|
|
|
|
* src/chgrp.c (usage): Tweak --help output to make it more consistent
|
|
|
|
|
|
with that of chown.
|
|
|
|
|
|
|
1999-08-17 07:59:12 +00:00
|
|
|
|
1999-08-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Remove check for rename and the code that would
|
|
|
|
|
|
enable building of the `mvdir' program.
|
|
|
|
|
|
* src/Makefile.am (libexec_PROGRAMS): Remove reference to @MVDIR@.
|
|
|
|
|
|
(EXTRA_PROGRAMS): Remove obsolete mvdir.
|
|
|
|
|
|
* lib/rename.c: Remove obsolete file. (it had a bug, too)
|
|
|
|
|
|
* src/mvdir.c: Remove obsolete file.
|
|
|
|
|
|
* po/POTFILES.in: Remove mvdir.c
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi (chown, chgrp invocation): Make these sections
|
|
|
|
|
|
consistent with each other.
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/chown.c (groupname): Declare to be `const'.
|
|
|
|
|
|
(change_dir_owner): Declare statp parameter to be `const'.
|
|
|
|
|
|
(usage): Make the output be more consistent with that from chgrp.
|
|
|
|
|
|
|
|
|
|
|
|
This change is nearly identical to the chown.c change of 1998-05-24
|
|
|
|
|
|
* src/chgrp.c: Accept new option, --dereference.
|
|
|
|
|
|
--no-dereference is now the default. Include lchown.h.
|
|
|
|
|
|
(enum Change_status) [CH_NOT_APPLIED]: New member.
|
|
|
|
|
|
(change_symlinks): Enable this by default, now.
|
|
|
|
|
|
(describe_change): Handle new case.
|
|
|
|
|
|
(change_file_group): Add new parameter: cmdline_arg. Update callers.
|
|
|
|
|
|
Reorganize to reflect changed semantics.
|
|
|
|
|
|
(LCHOWN): Remove definitions.
|
|
|
|
|
|
From Bruno Haible.
|
|
|
|
|
|
|
1999-08-10 11:02:10 +00:00
|
|
|
|
1999-08-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* po/POTFILES.in: Add lib/quotearg.c.
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-09 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* NEWS, doc/fileutils.texi, src/ls.c (usage):
|
|
|
|
|
|
Add ls --quoting-style=locale.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c (ARGMATCH_QUOTING_STYLE):
|
|
|
|
|
|
Change from escape_quoting_style to locale_quoting_style.
|
|
|
|
|
|
(argmatch_invalid): Use new quotearg_style primitive for simplicity.
|
|
|
|
|
|
Also, use ARGMATCH_QUOTING_STYLE to quote, instead of quoting ourselves.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/quotearg.h (locale_quoting_style): New enum value.
|
|
|
|
|
|
(quotearg_n_style, quotearg_style): New decls.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/quotearg.c: Include <libintl.h> if ENABLE_NLS.
|
|
|
|
|
|
(_): New macro.
|
|
|
|
|
|
(quoting_style_args, quoting_style_v, quotearg_buffer): Add support
|
|
|
|
|
|
for locale_quoting_style, using _("`") and _("'") for open and close
|
|
|
|
|
|
quote symbols.
|
|
|
|
|
|
Do not quote spaces in escape_quoting_style.
|
|
|
|
|
|
(quotearg_n_style, quotearg_style): New functions.
|
|
|
|
|
|
|
1999-08-08 10:15:15 +00:00
|
|
|
|
1999-08-08 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-08-08 20:01:58 +00:00
|
|
|
|
* src/touch.c (usage): Clarify description of --time=WORD.
|
|
|
|
|
|
From Karl Berry.
|
|
|
|
|
|
|
1999-08-08 10:15:15 +00:00
|
|
|
|
* lib/savedir.c (savedir): Change type of name_size parameter to off_t.
|
|
|
|
|
|
* lib/savedir.h (savedir): Update prototype.
|
|
|
|
|
|
* src/chmod.c (change_dir_mode): Remove cast of savedir arg.
|
|
|
|
|
|
* src/chown.c (change_dir_owner): Likewise.
|
|
|
|
|
|
* src/chgrp.c (change_dir_group): Likewise.
|
|
|
|
|
|
* src/copy.c (copy_dir): Likewise.
|
|
|
|
|
|
* src/du.c (count_entry): Likewise.
|
|
|
|
|
|
Suggestion from Bob Proulx.
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* po/POTFILES.in: Add lots of lib/*.c files.
|
|
|
|
|
|
Remove src/cp-hash.c, since it doesn't use _().
|
|
|
|
|
|
|
1999-08-04 08:04:34 +00:00
|
|
|
|
1999-08-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Remove getline-testing code. Now it's in m4/.
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-01 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS.
|
|
|
|
|
|
|
|
|
|
|
|
1999-07-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (usage): Explain about default wrt --hide-control-chars and
|
|
|
|
|
|
--show-control-chars. Reported by Germano Leichsenring.
|
|
|
|
|
|
|
1999-07-28 05:48:55 +00:00
|
|
|
|
1999-07-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR).
|
|
|
|
|
|
|
1999-07-26 06:52:28 +00:00
|
|
|
|
1999-07-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (PTR_ALIGN, ROUND_UP_OFFSET): New macros.
|
|
|
|
|
|
(dd_copy): Use those to page-align both the input and output buffers.
|
|
|
|
|
|
|
1999-07-21 15:07:58 +00:00
|
|
|
|
1999-06-01 Volker Borchert <bt@teknon.de>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/Makefile.am: Make envvar-check depend on check-recursive rather
|
|
|
|
|
|
than on `check' so that its tests are performed before any real tests.
|
|
|
|
|
|
|
1999-07-15 12:10:44 +00:00
|
|
|
|
1999-07-15 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c: Include getpagesize.h.
|
|
|
|
|
|
(dd_copy): Page-align the input buffer.
|
|
|
|
|
|
Based on a patch from Scott Lurndal.
|
|
|
|
|
|
|
|
|
|
|
|
* getpagesize.h: New file.
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add getpagesize.h.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/fsusage.c (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:
|
|
|
|
|
|
Work around SunOS botch also when block size is different from 1k.
|
|
|
|
|
|
From J<>rgen Fluk.
|
|
|
|
|
|
|
1999-07-10 08:44:58 +00:00
|
|
|
|
1999-07-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* man/help2man: Import version 1.012.
|
|
|
|
|
|
|
1999-07-04 10:40:15 +00:00
|
|
|
|
1999-07-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c [!defined strtoumax]: Declare strtoumax.
|
|
|
|
|
|
|
|
|
|
|
|
1999-07-04 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
|
|
|
|
|
|
expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
|
|
|
|
|
|
(strtol, strtoul): New decls (for pre-ANSI hosts), to replace
|
|
|
|
|
|
the above decl.
|
|
|
|
|
|
|
1999-07-04 08:48:02 +00:00
|
|
|
|
1999-06-27 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Fix some incompatibilities between `df -P' and POSIX.2.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.h (enum human_inexact_style): New enum.
|
|
|
|
|
|
(human_readable_inexact): New decl.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.c (human_readable): New function.
|
|
|
|
|
|
(human_readable_inexact): Renamed from human_readable, with new arg
|
|
|
|
|
|
INEXACT_STYLE. Add support for ceiling and floor.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (print_header): Conform to POSIX if posix_format).
|
|
|
|
|
|
(df_readable): Take ceiling if posix_format.
|
|
|
|
|
|
(ceil_percent): New function.
|
|
|
|
|
|
(show_dev): Take ceiling of percent if posix_format.
|
|
|
|
|
|
Align with POSIX-conforming header if posix_format.
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi: Document these changes.
|
|
|
|
|
|
|
1999-05-27 13:08:29 +00:00
|
|
|
|
1999-05-27 Volker Borchert <bt@teknon.de>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix.
|
|
|
|
|
|
|
1999-05-23 20:43:11 +00:00
|
|
|
|
1999-05-23 Jim Meyering <meyering@ascend.com>
|
1999-05-23 03:59:08 +00:00
|
|
|
|
|
1999-05-27 13:08:29 +00:00
|
|
|
|
* src/copy.c (copy_internal): Don't apply the umask in move_mode.
|
|
|
|
|
|
Otherwise, `mv' would not preserve the permissions when copying
|
|
|
|
|
|
between partitions. Reported by David Godfrey
|
|
|
|
|
|
|
1999-05-23 03:59:08 +00:00
|
|
|
|
* Version 4.0i.
|
|
|
|
|
|
|
1999-05-23 20:43:11 +00:00
|
|
|
|
* tests/cp/same-file: Correct erroneous expected output from
|
|
|
|
|
|
the `cp -f foo foo' tests.
|
1999-05-23 20:46:23 +00:00
|
|
|
|
* po/POTFILES.in: Add same.c.
|
1999-05-23 20:43:11 +00:00
|
|
|
|
* lib/same.h: New file.
|
|
|
|
|
|
* lib/same.c: New file (function extracted from ln.c).
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Add same.c.
|
|
|
|
|
|
(noinst_HEADERS): Add same.h.
|
|
|
|
|
|
* src/copy.c: Include same.h.
|
|
|
|
|
|
* src/ln.c (same_name): Remove function.
|
|
|
|
|
|
<same.h>: Include this instead.
|
|
|
|
|
|
<dirname.h>: No longer include this.
|
|
|
|
|
|
* tests/mv/force: Be sure we still allow `mv -f FILE LINK-TO-FILE'.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Make it so `cp/mv -f FILE FILE' does not
|
|
|
|
|
|
remove FILE. Suggestion from Chris Yeo.
|
|
|
|
|
|
* tests/mv/force: New test, for the above fix.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add force.
|
|
|
|
|
|
(TESTS_ENVIRONMENT): Change PATH to be absolute.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/force (mv): New test.
|
|
|
|
|
|
|
1999-05-19 14:31:53 +00:00
|
|
|
|
1999-05-17 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
1999-05-20 20:10:17 +00:00
|
|
|
|
* lib/getdate.y (get_date): Let mktime deduce tm_isdst if we
|
|
|
|
|
|
have an absolute timestamp, or if the relative timestamp
|
1999-05-23 04:19:10 +00:00
|
|
|
|
mentions days, months, or years. Reported by Volker Borchert.
|
1999-05-20 20:10:17 +00:00
|
|
|
|
|
1999-05-19 14:31:53 +00:00
|
|
|
|
* lib/human.c (human_readable): Allow from_block_size to be zero.
|
|
|
|
|
|
|
1999-05-15 04:08:29 +00:00
|
|
|
|
1999-05-14 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-05-15 04:11:13 +00:00
|
|
|
|
* tests/Makefile.am (envvar-check): Renamed from check-local.
|
|
|
|
|
|
(check): Depend on envvar-check so the envvar check is performed
|
|
|
|
|
|
before all other tests. Reported by Volker Borchert.
|
|
|
|
|
|
* tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects,
|
|
|
|
|
|
so CDPATH is mentioned in the message. Reported by Volker Borchert.
|
|
|
|
|
|
|
1999-05-15 04:08:29 +00:00
|
|
|
|
* src/df.c (main): When asking for info on an explicit file name,
|
|
|
|
|
|
just warn rather than failing if the table of mounted filesystems
|
|
|
|
|
|
cannot be read. Based on a patch from Mark Kettenis.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/version-etc.c (version_etc): Put version info and author names
|
|
|
|
|
|
on the first two lines respectively rather than putting the three
|
|
|
|
|
|
lines of copyright info between them.
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c (open_maybe_create): Handle Solaris' failure mode when
|
|
|
|
|
|
FILE is a directory. Reported by Vin Shelton.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.c: Include <string.h> or <strings.h> for strlen prototype.
|
|
|
|
|
|
* lib/getline.h [__GLIBC__ >= 2]: #if-out prototypes.
|
|
|
|
|
|
* src/remove.c (pop_dir): Cast length to `int' to avoid a warning on
|
|
|
|
|
|
64-bit systems. From Ulrich Drepper.
|
|
|
|
|
|
|
|
|
|
|
|
1999-05-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (main): Put `u' for -u in getopt_long's string argument.
|
|
|
|
|
|
Remove the `R'.
|
|
|
|
|
|
|
1999-05-07 18:53:01 +00:00
|
|
|
|
1999-05-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-05-09 15:13:09 +00:00
|
|
|
|
* Version 4.0h.
|
|
|
|
|
|
|
1999-05-07 18:53:01 +00:00
|
|
|
|
* tests/touch/dir-1: New test.
|
|
|
|
|
|
* tests/touch/Makefile.am (TESTS_ENVIRONMENT): Remove individual
|
|
|
|
|
|
upper-case program names. Add a definition of PATH.
|
|
|
|
|
|
(TESTS): Add dir-1.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mkdir.c (main): Use better wording in diagnostic: `cannot
|
|
|
|
|
|
create directory' rather than `cannot make directory'. The former
|
|
|
|
|
|
also matches the one in makepath.c.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c: (apply_translations): Use TOUPPER and TOLOWER,
|
|
|
|
|
|
not toupper and tolower.
|
|
|
|
|
|
|
1999-05-05 13:16:42 +00:00
|
|
|
|
1999-05-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-05-07 18:53:01 +00:00
|
|
|
|
* lib/makepath.c (make_dir): When reporting a mkdir failure and the
|
|
|
|
|
|
target cannot be `stat'ed, use the errno from the failed mkdir call,
|
|
|
|
|
|
not the one from the stat call. Before this change, running
|
|
|
|
|
|
`mkdir -p /no-dir/no-dir' as an unprivileged user would wrongly
|
|
|
|
|
|
elicit `No such file or directory' instead of `Permission denied'.
|
|
|
|
|
|
|
1999-05-05 13:21:55 +00:00
|
|
|
|
* lib/strtol.c (TYPE_SIGNED, TYPE_MAXIMUM, TYPE_MINIMUM): Define.
|
|
|
|
|
|
(ULONG_LONG_MAX, LONG_LONG_MAX, LONG_LONG_MIN): Define if not defined.
|
|
|
|
|
|
Based on a patch from Kaveh Ghazi.
|
|
|
|
|
|
|
1999-05-05 13:16:42 +00:00
|
|
|
|
* src/ls.c (USE_ACL): Define this only #if
|
|
|
|
|
|
(HAVE_SYS_ACL_H && HAVE_ACL && defined GETACLCNT).
|
|
|
|
|
|
Use `USE_ACL' in place of `HAVE_ACL' everywhere else. From Kaveh Ghazi.
|
|
|
|
|
|
|
|
|
|
|
|
1999-05-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/makepath.c: Include makepath.h libintl.h, not after it.
|
|
|
|
|
|
Otherwise, we'd get the wrong definition of PARAMS from libintl.h.
|
|
|
|
|
|
(The method of defining PARAMS in libintl.h doesn't check PROTOTYPES,
|
|
|
|
|
|
which is necessary on Irix4 since cc doesn't define __STDC__.)
|
|
|
|
|
|
From Kaveh Ghazi.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint: Define several tag-related make variables.
|
|
|
|
|
|
(cvs-dist): Use the make variables instead of shell ones.
|
|
|
|
|
|
(announcement): Automatically generate diffs for all ChangeLog files,
|
|
|
|
|
|
not just the top level one.
|
|
|
|
|
|
|
1999-05-01 04:15:43 +00:00
|
|
|
|
1999-04-30 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/dup2.c: New file.
|
|
|
|
|
|
|
1999-04-30 16:03:53 +00:00
|
|
|
|
1999-04-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-05-07 18:53:01 +00:00
|
|
|
|
* src/touch.c (touch): Only do the fstat if we need to.
|
|
|
|
|
|
Resort to calling stat for directories, but only when necessary.
|
|
|
|
|
|
(usage): Mention --no-create.
|
1999-04-30 20:59:49 +00:00
|
|
|
|
|
1999-04-30 16:03:53 +00:00
|
|
|
|
* src/copy.c (copy_internal): Move the one-file-system test so that
|
|
|
|
|
|
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block.
|
|
|
|
|
|
Prior to this change, `cp --one-file-system' would traverse a file-
|
1999-04-30 20:59:49 +00:00
|
|
|
|
system boundary if the destination directory existed. From Ton Hospel.
|
1999-04-30 16:03:53 +00:00
|
|
|
|
|
1999-05-01 04:15:43 +00:00
|
|
|
|
1999-04-27 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c: Always use STDIN_FILENO for input and STDOUT_FILENO
|
|
|
|
|
|
for output, to avoid confusion with closed input and output fds.
|
|
|
|
|
|
(input_fd, output_fd): Remove; all uses changed to STDIN_FILENO
|
|
|
|
|
|
and STDOUT_FILENO.
|
|
|
|
|
|
(open_fd): New function.
|
|
|
|
|
|
(main): Use it, instead of open, to ensure that file descriptors
|
|
|
|
|
|
don't get confused.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-26 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (decode_switches): Use STDIN_FILENO, STDOUT_FILENO instead
|
|
|
|
|
|
of 0, 1.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (skip): Don't fstat the input file; the result is
|
|
|
|
|
|
no longer used.
|
|
|
|
|
|
|
1999-04-30 16:03:53 +00:00
|
|
|
|
1999-04-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/into-self-2: Update to reflect this change by reversing
|
|
|
|
|
|
the order of arguments so the symlink is the source, not the
|
|
|
|
|
|
destination (otherwise, the mv command would now succeed).
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Don't make `mv foo symlink-to-foo' fail.
|
|
|
|
|
|
That is, even though source and destination are `the same,' don't fail
|
|
|
|
|
|
if the destination is a symlink. From Peter Samuelson.
|
|
|
|
|
|
|
1999-04-26 13:25:28 +00:00
|
|
|
|
1999-04-26 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
1999-04-26 13:31:57 +00:00
|
|
|
|
* src/dd.c (main): If you can't open an output file (with
|
|
|
|
|
|
seek=...) read-write, then open it for write and report an
|
|
|
|
|
|
error if we can't seek.
|
|
|
|
|
|
|
1999-04-26 13:25:28 +00:00
|
|
|
|
* lib/filemode.c (setst, ftypelet, mode_string):
|
|
|
|
|
|
* lib/mkdir.c (mkdir):
|
|
|
|
|
|
* lib/makepath.c (make_path):
|
|
|
|
|
|
* lib/modechange.c (make_node_op_equals, mode_compile,
|
|
|
|
|
|
mode_create_from_ref, mode_adjust):
|
|
|
|
|
|
* lib/modechange.h (mode_adjust):
|
|
|
|
|
|
* src/chmod.c (describe_change, change_file_mode):
|
|
|
|
|
|
* src/copy.c (copy_reg, copy_internal):
|
|
|
|
|
|
* src/copy.h (struct cp_options.umask_kill):
|
|
|
|
|
|
* src/cp.c (do_copy, cp_option_init, main):
|
|
|
|
|
|
* src/dd.c (main):
|
|
|
|
|
|
* src/install.c (mode, cp_option_init, DIR_MODE):
|
|
|
|
|
|
* src/mkdir.c (main):
|
|
|
|
|
|
* src/mkfifo.c (main):
|
|
|
|
|
|
* src/mknod.c (main):
|
|
|
|
|
|
* src/mv.c (cp_option_init):
|
|
|
|
|
|
* src/touch.c (open_maybe_create):
|
|
|
|
|
|
Use proper mode_t types and macros.
|
|
|
|
|
|
Don't assume the traditional Unix values for mode bits.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.c (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH,
|
|
|
|
|
|
S_IXOTH): Define if not defined.
|
|
|
|
|
|
(rwx): Remove.
|
|
|
|
|
|
* lib/mkdir.c (S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
|
|
|
|
|
|
* lib/makepath.c (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRWXU):
|
|
|
|
|
|
Define if not defined.
|
|
|
|
|
|
* src/system.h (S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):
|
|
|
|
|
|
Define if not defined.
|
|
|
|
|
|
(CHMOD_MODE_BITS): New macro.
|
|
|
|
|
|
* src/install.c (isodigit): Remove unused macro.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mkfifo.c, src/mknod.c (usage):
|
|
|
|
|
|
Use symbolic mode as default, not octal.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/utime.c (utime_null):
|
|
|
|
|
|
Don't pass 0666 to open; it's not needed and isn't
|
|
|
|
|
|
guaranteed to be portable.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.h: <config.h>, <sys/types.h>: Include for mode_t.
|
|
|
|
|
|
(mode_string): Now takes mode_t.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/modechange.h: Include <config.h>, <sys/types.h> for mode_t.
|
|
|
|
|
|
(struct mode_change): Members affected and value are now mode_t instead
|
|
|
|
|
|
of unsigned short.
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi, doc/perm.texi:
|
|
|
|
|
|
Don't assume traditional Unix mode numbering.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/modechange.c: modechange.h now includes sys/types.h.
|
|
|
|
|
|
Include xstrtol.h.
|
|
|
|
|
|
(isodigit, oatoi): Remove.
|
|
|
|
|
|
(S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP,
|
|
|
|
|
|
S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRWXU, S_IRWXG,
|
|
|
|
|
|
S_IRWXO): Define if not defined.
|
|
|
|
|
|
(CHMOD_MODE_BITS): New macro.
|
|
|
|
|
|
(mode_compile): Convert from octal with xstrtoul, not our own routine.
|
|
|
|
|
|
|
1999-04-25 04:38:15 +00:00
|
|
|
|
1999-04-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 4.0g.
|
|
|
|
|
|
|
1999-04-22 15:19:11 +00:00
|
|
|
|
1999-04-22 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (word32): Don't use `#error'; it runs afoul of
|
1999-04-25 12:11:52 +00:00
|
|
|
|
SunOS 4.1.4 cc. From Paul Eggert.
|
1999-04-22 15:19:11 +00:00
|
|
|
|
|
|
|
|
|
|
* lib/strtoull.c: Guard strong_alias and weak_alias with #ifdef _LIBC.
|
|
|
|
|
|
|
1999-04-21 04:29:00 +00:00
|
|
|
|
1999-04-20 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Replace our temporary hack implementation of strtoumax with
|
|
|
|
|
|
something very close to the real code in glibc.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtoumax.c: Remove the temporary strtoumax replacement;
|
|
|
|
|
|
we now have a true replacement in strtoumax.c.
|
|
|
|
|
|
(__strtol): Always define to strtoumax.
|
|
|
|
|
|
(<stdlib.h>): No need to include.
|
|
|
|
|
|
(PARAMS): Remove.
|
|
|
|
|
|
(my_strtoumax): Move this to strtoumax.c,
|
|
|
|
|
|
rename it to strtoumax, and simplify.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strtoull.c, lib/strtoumax.c: New files.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strtol.c: Update to glibc 2.1.1 version.
|
|
|
|
|
|
|
1999-04-21 02:28:20 +00:00
|
|
|
|
1999-04-20 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/Makefile.am (EXTRA_DIST): s/posix-warn/env-warn/.
|
|
|
|
|
|
(check-local): Also test and warn if CDPATH is set.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-20 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CANONICAL_HOST): Add; needed for new AC_LFS's
|
|
|
|
|
|
cross-compilation.
|
|
|
|
|
|
* config.guess: New file (from autoconf).
|
|
|
|
|
|
* config.sub: New file (from autoconf).
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c <config.h>: Include first, since it can do
|
|
|
|
|
|
things like #define const, and this must be done before
|
|
|
|
|
|
including any system headers.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtoumax.c (my_strtoumax): Fix typo in computing
|
|
|
|
|
|
whether overflow occurred. Improve overflow-detection to use
|
|
|
|
|
|
only one conditional branch total, rather than 2N+1
|
|
|
|
|
|
conditional branches for an N-digit number.
|
|
|
|
|
|
|
1999-04-19 02:56:54 +00:00
|
|
|
|
1999-04-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Remove strtoull, strtoumax, and
|
|
|
|
|
|
strtouq, now that they're checked in m4/xstrtoumax.m4.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-18 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi, src/shred.c (main, longopts):
|
|
|
|
|
|
Use -u instead of -R for --remove, so that we can preserve
|
|
|
|
|
|
future compatibility with rm.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c [!HAVE_CONFIG_H] (ST_BLKSIZE): Define to 65536.
|
|
|
|
|
|
(do_wipefd): Use ST_BLKSIZE instead of referring to the st_blksize
|
|
|
|
|
|
member directly.
|
|
|
|
|
|
|
1999-04-18 23:20:24 +00:00
|
|
|
|
1999-04-18 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Fix shred to do the right thing with off_t longer than long.
|
|
|
|
|
|
Merge large-integer parsing code with similar code in dd.c,
|
|
|
|
|
|
and put the resulting in lib/xstrtoumax.c so that other programs
|
|
|
|
|
|
can use it. Instead of adding a new lib/xstrtoumax.h I thought
|
|
|
|
|
|
it cleaner to put all the xstroto* declarations into a single
|
|
|
|
|
|
header, which for now is lib/xstrtol.h for lack of a better place.
|
|
|
|
|
|
(Mayby lib/xstdlib.h would be better? :-)
|
|
|
|
|
|
|
|
|
|
|
|
I thought of several other problems with shredding regular files;
|
|
|
|
|
|
shredding devices is much more reliable. So I changed the defaults
|
|
|
|
|
|
to be more suitable for shredding devices; this should help encourage
|
|
|
|
|
|
users to do the right thing.
|
|
|
|
|
|
|
|
|
|
|
|
pfstatus isn't portable to environments with varying width
|
|
|
|
|
|
fonts, or with internationalized environments where the byte
|
|
|
|
|
|
count of the message is not the same as its print width.
|
|
|
|
|
|
Rather than deal with this, I just simplified it to not do
|
|
|
|
|
|
tricks with carriage-returns and spaces. (I'm also worried
|
|
|
|
|
|
that vprintf may not return the right value on some hosts; I
|
|
|
|
|
|
vaguelly recall this being a problem.) As a result, -v and -
|
|
|
|
|
|
no longer conflict.
|
|
|
|
|
|
|
|
|
|
|
|
When removing a special file, try to truncate it first, but don't
|
|
|
|
|
|
worry if this reports an error.
|
|
|
|
|
|
|
|
|
|
|
|
Try to find the size of a non-regular file by seeking to its end.
|
|
|
|
|
|
|
|
|
|
|
|
Various porting fixes, mostly because of a port to SunOS 4.1.4 cc.
|
|
|
|
|
|
|
|
|
|
|
|
Some other minor bug fixes.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtoul.h: Remove this file.
|
|
|
|
|
|
* lib/xstrtoumax.c: New file.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Add strtoull, strtoumax, strtouq.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtoul.c (STRING_TO_UNSIGNED): Remove.
|
|
|
|
|
|
(__strtol, __strtol_t, __xstrtol): New macros.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c (__strtol, __strtol_t, __xstrtol):
|
|
|
|
|
|
New macros to specify the
|
|
|
|
|
|
underlying function, its returned type, and our function. Default to
|
|
|
|
|
|
values suitable for xstrtol.
|
|
|
|
|
|
|
|
|
|
|
|
Include <ctype.h>, since we use its macros.
|
|
|
|
|
|
|
|
|
|
|
|
(ULONG_MAX, LONG_MAX, ISBLANK): Remove: no longer needed.
|
|
|
|
|
|
(ISSPACE): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
(bkm_scale, bkm_scale_by_power, __xstrtol, main): __unsigned long int
|
|
|
|
|
|
-> __strtol_t.
|
|
|
|
|
|
|
|
|
|
|
|
(__xstrtol): Depend on whether __strtol_t is an unsigned type, not on
|
|
|
|
|
|
whether STRING_TO_UNSIGNED is defined. Skip isspace chars, not
|
|
|
|
|
|
isblank chars, to match strtol. When returning
|
|
|
|
|
|
LONGINT_INVALID_SUFFIX_CHAR, store the value that we computed into
|
|
|
|
|
|
*val.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.h (__xstrtol, __strtol, __unsigned): Remove macro decls.
|
|
|
|
|
|
<inttypes.h>: Include if HAVE_INTTYPES_H.
|
|
|
|
|
|
(_DECLARE_XSTRTOL): New macro.
|
|
|
|
|
|
(xstrtol, xstrtoul, xstrtoumax): Declare all three functions, so that
|
|
|
|
|
|
we need only one include file, not three.
|
|
|
|
|
|
(_STRTOL_ERROR): Do not undef, as this is no longer needed.
|
|
|
|
|
|
Reword overflow message so that it's independent of type.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Add xstrtoumax.c.
|
|
|
|
|
|
(noinst_HEADERS): Remove xstrtoul.h.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xmalloc.c (xalloc_fail):
|
|
|
|
|
|
Pass xalloc_msg_memory_exhausted through gettext.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/getdate.y:
|
|
|
|
|
|
<stdlib.h>: Include if HAVE_STDLIB_H, since bison 1.27 invokes "free".
|
|
|
|
|
|
(LookupWord, yylex): Don't pass negative char to ctype macros.
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi:
|
|
|
|
|
|
Explain why shredding devices is more reliable, and why the
|
|
|
|
|
|
default options are more suitable for devices.
|
|
|
|
|
|
|
|
|
|
|
|
Remove withdrawn options -b or --no-contents, -c or --freed-contents,
|
|
|
|
|
|
-C or --all-contents, -k or --no-links, -l or --ordinary-links, -L or
|
|
|
|
|
|
--all-links.
|
|
|
|
|
|
|
|
|
|
|
|
Add -R or --remove, -s or --size.
|
|
|
|
|
|
|
|
|
|
|
|
-v can no longer be doubled.
|
|
|
|
|
|
|
|
|
|
|
|
`file system' --> `filesystem' uniformly.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chgrp.c: Include xstrtol.h, not obsolete file xstrtoul.h.
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c: Include xstrtol.h, not obsolete file xstrtoul.h.
|
|
|
|
|
|
"human.h", "xalloc.h": Include.
|
|
|
|
|
|
(attribute): Remove; no longer needed.
|
|
|
|
|
|
(xstrdup): New decl.
|
|
|
|
|
|
(STDOUT_FILENO): New macro.
|
|
|
|
|
|
(O_NOCTTY): Make sure it's always defined, even if HAVE_CONFIG_H.
|
|
|
|
|
|
|
|
|
|
|
|
The following changes have effect only if !HAVE_CONFIG_H.
|
|
|
|
|
|
<ctype.h>: New include.
|
|
|
|
|
|
(RETSIGTYPE): Remove bogus semicolon at end.
|
|
|
|
|
|
(STDOUT_FILENO, uintmax_t, human_readable, LONGEST_HUMAN_READABLE):
|
|
|
|
|
|
New macros.
|
|
|
|
|
|
(xstrtoumax): Renamed from xstrtoul, with corresponding type changes.
|
|
|
|
|
|
Handle suffixes like the real routine does.
|
|
|
|
|
|
(error): Remove bogus assignment of errno to errnum.
|
|
|
|
|
|
(xmalloc, xstrdup): New functions.
|
|
|
|
|
|
|
|
|
|
|
|
(O_NOCTTY): Define even if !HAVE_CONFIG_H.
|
|
|
|
|
|
(S_ISFIFO, S_ISSOCK): New macros, if not already defined.
|
|
|
|
|
|
(OUTPUT_BLOCK_SIZE): New macro.
|
|
|
|
|
|
(struct Options.verbose): Now a boolean, since we no longer have two
|
|
|
|
|
|
levels of verbosity.
|
|
|
|
|
|
(long_opts, usage, main): Remove -D or --device option. Invert -p or
|
|
|
|
|
|
--preserve option, and rename it to -R or --remove.
|
|
|
|
|
|
(usage): Describe G suffix.
|
|
|
|
|
|
(usage): "-" no longer conflicts with -v.
|
|
|
|
|
|
(UCHAR_MAX): Indent `#error' so that SunOS 4.1.4 cc doesn't reject it.
|
|
|
|
|
|
(ind): Portability fixes: return word32, not unsigned; multiply by
|
|
|
|
|
|
sizeof (word32) instead of shifting left by 2.
|
|
|
|
|
|
(isaac_refill, isaac_mix): Comment out size of array parameter, as
|
|
|
|
|
|
ansi2knr mishandles this.
|
|
|
|
|
|
(status_visible, status_pos, pfstatus, flushstatus): Remove, since
|
|
|
|
|
|
pfstatus isn't portable to users with varying width fonts, or
|
|
|
|
|
|
internationalized messages, and vfprintf is problematic. All callers
|
|
|
|
|
|
of pfstatus changed to use error instead; this removes incompatibility
|
|
|
|
|
|
of -v with -. All calls to flushstatus removed.
|
|
|
|
|
|
(dopass, do_wipefd): Do not translate non-English msgs with gettext.
|
|
|
|
|
|
|
|
|
|
|
|
(dopass): Cast lseek constant arguments to (off_t) for benefit
|
|
|
|
|
|
of pre-ANSI compilers; fix one lseek call whose args were interchanged.
|
|
|
|
|
|
Remove unnecessary casts to (off_t). Do not check for EIO
|
|
|
|
|
|
when determining file size; this was just my earlier wild guess.
|
|
|
|
|
|
Use human_readable to print off_t, instead of casting to unsigned long
|
|
|
|
|
|
(which doesn't work in Solaris 2.6, where off_t is longer than long).
|
|
|
|
|
|
Output human-readable sizes, instead of always using "K".
|
|
|
|
|
|
Check for offset overflow (it happened to me in SunOS 4.1.4).
|
|
|
|
|
|
(do_wipefd): Do not insist on regular files, but do check for special
|
|
|
|
|
|
files that cannot possibly be shredded.
|
|
|
|
|
|
Use xmalloc instead of malloc + check.
|
|
|
|
|
|
Do not inspect st_size for non-regular files.
|
|
|
|
|
|
Try to find the size of a non-regular file by seeking to its end.
|
|
|
|
|
|
Do not assume that a regular file of size-0 has unknown size.
|
|
|
|
|
|
Check for regular files with negative sizes,
|
|
|
|
|
|
and for overflow after rounding to next block.
|
|
|
|
|
|
Always try to truncate, even for special files, but do not report an
|
|
|
|
|
|
error if truncation fails on a special file.
|
|
|
|
|
|
|
|
|
|
|
|
(dopass, wipefile): Do not return 1 for special files; the caller
|
|
|
|
|
|
doesn't care any more.
|
|
|
|
|
|
|
|
|
|
|
|
(wipefd): Remove unnecessary (and nonportable) check for
|
|
|
|
|
|
whether the file descriptor is read-only. Remove
|
|
|
|
|
|
no-longer-needed check for `-v -'.
|
|
|
|
|
|
|
|
|
|
|
|
(incname): Return 1 for carry bit, like the documentation says.
|
|
|
|
|
|
|
|
|
|
|
|
(wipename, wipefile): Accept new argument, specifying the
|
|
|
|
|
|
quoted file name. All callers changed.
|
|
|
|
|
|
|
|
|
|
|
|
(wipename): Use xstrdup instead of strdup+error check.
|
|
|
|
|
|
|
|
|
|
|
|
(wipefile): Check for ENOTDIR when opening /dev/fd/NNN. Check for
|
|
|
|
|
|
errors in NNN more carefully. Restore errno after the check.
|
|
|
|
|
|
Check for errors when closing the file descriptor.
|
|
|
|
|
|
Use more consistent wording when unable to remove a file.
|
|
|
|
|
|
|
|
|
|
|
|
(main): Do not remove files by default.
|
|
|
|
|
|
Use xstrtoumax instead of xstrtoul uniformly, since xstrtoul won't
|
|
|
|
|
|
exist if !HAVE_CONFIG_H.
|
|
|
|
|
|
In diagnostics, quote invalid operands to -n and -s options.
|
|
|
|
|
|
Allow T, P, E, Z, and Y suffixes in -s operand.
|
|
|
|
|
|
flags.verbose is now a boolean, not a counter.
|
|
|
|
|
|
Use STDOUT_FILENO instead of 1, for clarity.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.c:
|
|
|
|
|
|
Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
|
|
|
|
|
|
xstrto... functions.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c: Include xstrtol.h.
|
|
|
|
|
|
(parse_integer): Migrate most of the work into the new xstrtoumax fn.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtoumax.c: New file.
|
|
|
|
|
|
|
1999-04-18 13:32:44 +00:00
|
|
|
|
1999-04-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (main): Open the output file with *read* access
|
|
|
|
|
|
only if we might need to read to satisfy a `seek=' request.
|
|
|
|
|
|
From Matthias Urlichs.
|
|
|
|
|
|
|
1999-04-11 01:44:26 +00:00
|
|
|
|
1999-04-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-04-11 03:24:12 +00:00
|
|
|
|
* Makefile.maint (alpha): Add trailing slash for ncftp.
|
|
|
|
|
|
|
1999-04-11 02:15:26 +00:00
|
|
|
|
* Version 4.0f.
|
|
|
|
|
|
|
1999-04-11 02:19:51 +00:00
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/dd/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add dd.
|
|
|
|
|
|
* tests/dd: New directory
|
|
|
|
|
|
* tests/dd/misc: New file.
|
|
|
|
|
|
|
1999-04-11 01:44:26 +00:00
|
|
|
|
`ls --color' would segfault
|
|
|
|
|
|
* src/ls.c: Include assert.h.
|
|
|
|
|
|
(color_indicator[]): Add an entry for the type, `door.'
|
|
|
|
|
|
(main): Assert that the lengths of the color_indicator and
|
|
|
|
|
|
indicator_name arrays are appropriately related.
|
|
|
|
|
|
Reported by John Gotts.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (scanargs): Fix bug introduced with last change: now that
|
|
|
|
|
|
the loop is gone, manually decrement argc and increment argv.
|
|
|
|
|
|
Reported by Andreas Jaeger and jvogel@linkny.com.
|
|
|
|
|
|
|
1999-04-07 17:43:47 +00:00
|
|
|
|
1999-04-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/getdate.y (difftm): Protoize.
|
|
|
|
|
|
|
1999-04-07 17:43:12 +00:00
|
|
|
|
1999-04-06 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strftime.c: Update from master source in libc.
|
|
|
|
|
|
|
1999-04-04 14:43:27 +00:00
|
|
|
|
1999-04-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-04-05 03:51:33 +00:00
|
|
|
|
* tests/ln/misc: Comment out the test added on 1999-01-31.
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint (url_dir_list): Define properly.
|
|
|
|
|
|
(real_dir_list): Likewise.
|
|
|
|
|
|
|
1999-04-04 23:15:20 +00:00
|
|
|
|
* src/shred.c: Don't include string.h.
|
|
|
|
|
|
[!HAVE_CONFIG_H]: Include string.h here.
|
|
|
|
|
|
[!HAVE_CONFIG_H]: Hard-code RETSIGTYPE to `int'.
|
|
|
|
|
|
(sigill_handler): Change return type and type of local `oldhandler' to
|
|
|
|
|
|
RETSIGTYPE.
|
|
|
|
|
|
(isaac_seed_machdep): Change and type of local `oldhandler' to
|
|
|
|
|
|
RETSIGTYPE.
|
|
|
|
|
|
From Colin Plumb.
|
|
|
|
|
|
|
1999-04-04 20:54:30 +00:00
|
|
|
|
* Version 4.0e
|
|
|
|
|
|
|
1999-04-04 16:02:28 +00:00
|
|
|
|
* tests/cp/same-file: Change the sed command used to extract the
|
|
|
|
|
|
filename from ls -l output, to accommodate the change in format.
|
|
|
|
|
|
|
1999-04-04 14:43:27 +00:00
|
|
|
|
* src/ls.c (print_long_format): Add a space between %s and %3u. This
|
|
|
|
|
|
assures that even when modebuf has the trailing `+' and there are more
|
|
|
|
|
|
than 99 hard links to a file, the permissions string and the link count
|
|
|
|
|
|
will be separated.
|
|
|
|
|
|
|
1999-04-04 14:30:44 +00:00
|
|
|
|
1999-04-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (dopass): add curly braces to avoid warning about
|
|
|
|
|
|
ambiguous `else'.
|
|
|
|
|
|
(wipefd): Add parentheses suggested by gcc.
|
|
|
|
|
|
(do_wipefd): Remove declaration of unused local.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-02 Colin Plumb <colin@nyx.net>
|
|
|
|
|
|
|
|
|
|
|
|
* shred.c [!HAVE_CONFIG_H] (xstrtoul, error, close_stdout): Added stubs
|
|
|
|
|
|
to allow standalone compilation.
|
|
|
|
|
|
|
|
|
|
|
|
(wipefile): Added support for emulating /dev/fd/# files even if
|
|
|
|
|
|
the OS doesn't support them. From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(main, usage): Changed --device short option to -D.
|
|
|
|
|
|
|
|
|
|
|
|
(wipefd, do_wipefd): Renamed function to do_wipefd and added
|
|
|
|
|
|
separate wipefd that performs sanity checks on externally-opened file
|
|
|
|
|
|
descriptors, such as not append-only. From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(do_wipefd, isaac_seedfd): Do not read file for any reason.
|
|
|
|
|
|
if the file is low-entropy, it's a security hole.
|
|
|
|
|
|
(wipefile) Changed to open O_WRONLY and chmod to write-only when
|
|
|
|
|
|
forcing.
|
|
|
|
|
|
(isaac_seedfd) Function deleted as unnecessary.
|
|
|
|
|
|
From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(dopass): Dynamically fall back to fsync() if fdatasync() fails,
|
|
|
|
|
|
since POSIX, in their infinitesimal wisdom, encourage implementations
|
|
|
|
|
|
that return constant -1, making compile-time testing useless.
|
|
|
|
|
|
From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(dopass): Changed to support a size of -1 to mean "unknown".
|
|
|
|
|
|
This entailed changing to a counting-up offset rather than couting-down
|
|
|
|
|
|
cursize for the central state variable. Also changed size argument to
|
|
|
|
|
|
be call-by-reference so that it can be passed back once known.
|
|
|
|
|
|
(sizer) Function deleted as unnecessary.
|
|
|
|
|
|
(wipefd): Changed to match. From Paul Eggert
|
|
|
|
|
|
|
|
|
|
|
|
(dopass): Try to skip over bad blocks in destination files.
|
|
|
|
|
|
Also added ftruncate() for more complete destruction of metadata.
|
|
|
|
|
|
|
|
|
|
|
|
(main, usage): Changed "-" to stand for standard output.
|
|
|
|
|
|
(wipefd): Added error message to detect conflict with -v.
|
|
|
|
|
|
|
|
|
|
|
|
(dopass): Added periodic fsync() calls to keep the pass progress
|
|
|
|
|
|
display in sync with reality. Hopefully they're sufficiently far spaced
|
|
|
|
|
|
that throughput isn't affected. It might be a good thing to do even in
|
|
|
|
|
|
non-verbose mode, to avoid filling up the kernel caches with dirty data.
|
|
|
|
|
|
Also added ftruncate() for more complete destruction of metadata.
|
|
|
|
|
|
|
|
|
|
|
|
(quotearg_colon): New function to print
|
|
|
|
|
|
pathological filenames properly.
|
|
|
|
|
|
[!HAVE_CONFIG_H] (quotearg_colon_buf) New internal helper function
|
|
|
|
|
|
that does most of the work.
|
|
|
|
|
|
(wipefd, do_wipefd, dopass) Now take a qname (pre-quoted name) argument.
|
|
|
|
|
|
(wipename, wipefile, main) Changed diagnostics to use quotearg_colon.
|
|
|
|
|
|
Error messages are also in a more uniform format.
|
|
|
|
|
|
From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(struct Options, main, do_wipefd): Added -s/--size=N flag.
|
|
|
|
|
|
(xstrtoul): Added support for valid_suffixes to help this.
|
|
|
|
|
|
(usage) Documented it.
|
|
|
|
|
|
|
|
|
|
|
|
(error): Changed some arguments from N_() to _(), since error()
|
|
|
|
|
|
does not translate its argument. I think this is a bug.
|
|
|
|
|
|
|
|
|
|
|
|
(struct Options do_wipefd, wipefd, wipefile, main): moved passes
|
|
|
|
|
|
argument into the Options structure as n_iterations, which is now a
|
|
|
|
|
|
size_t. From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(isaac_seed_start, isaac_seed_data, isaac_seed_finish): New functions
|
|
|
|
|
|
to manage seeding of RNG with arbitrary-sized data.
|
|
|
|
|
|
(isaac_init): commented out as dead code.
|
|
|
|
|
|
(isaac_seed): changed to use new functions to prevent any possibility of
|
|
|
|
|
|
a buffer overflow.
|
|
|
|
|
|
|
|
|
|
|
|
(isaac_seed): Added support for Solaris' gethrtime()
|
|
|
|
|
|
configure.in: Corresponding feature test. From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(wipename): Change remove() to unlink() for speed & portability.
|
|
|
|
|
|
Use lstat() instead of access() to see if a filename is taken. This
|
|
|
|
|
|
works even on dangling symlinks and avoids the suid problems of
|
|
|
|
|
|
access(2). From Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
(isaac_seed_machdep): New function for reading cycle counters
|
|
|
|
|
|
|
1999-04-03 03:29:41 +00:00
|
|
|
|
1999-04-02 Paul Eggert <eggert@shade.twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Add gethrtime.
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (isaac_seed): Don't overrun the s->mm buffer.
|
|
|
|
|
|
Use gethrtime if available. Don't assume that clock_gettime succeeds.
|
|
|
|
|
|
Put most random sources first.
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-02 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
shred: Add new options -bcCklL and fix some porting problems.
|
|
|
|
|
|
Remove options -dp. Do not read output files.
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (long_opts, usage, main, wipefile): Adjust to
|
|
|
|
|
|
new options.
|
|
|
|
|
|
("human.h", "quotearg.h"): New includes.
|
|
|
|
|
|
(struct Options): New members contents, links, n_iterations.
|
|
|
|
|
|
Remove allow_devices, remove_file. Change n_iterations to size_t.
|
|
|
|
|
|
All uses changed.
|
|
|
|
|
|
(output_block_size): New var.
|
|
|
|
|
|
(usage): Declare __noreturn__ attribute.
|
|
|
|
|
|
(fdatasync): Define to -1 if not present, since we need to invoke both
|
|
|
|
|
|
fdatasync and fsync if both are present. All invokers of fdatasync
|
|
|
|
|
|
now try fdatasync, then fsync.
|
|
|
|
|
|
(MIXIN): New macro.
|
|
|
|
|
|
(isaac_seed): Use it to mix in values. Add uid, gid to mix.
|
|
|
|
|
|
Don't use gettimeofday, as it has too many porting problems.
|
|
|
|
|
|
(isaac_seedfd): Remove, since we no longer read the output files.
|
|
|
|
|
|
(sizefd): Remove; we now determine size by writing sequentially.
|
|
|
|
|
|
(dopass, wipename, wipefile, main): Clean up error messages.
|
|
|
|
|
|
(dopass): Keep track of offset relative to start of file, not
|
|
|
|
|
|
end, since we may not know how large the file is. If size is
|
|
|
|
|
|
negative, write until we fall off the end of the file.
|
|
|
|
|
|
(wipefd): Do not read output file.
|
|
|
|
|
|
Return 0 if successful, -1 if not; do not make a special case for
|
|
|
|
|
|
non-regular files, since our callers have that info now.
|
|
|
|
|
|
(wipename): Now static. Return errno if error.
|
|
|
|
|
|
(main): "-" now stands for standard output.
|
|
|
|
|
|
Do not shred append-only standard output.
|
|
|
|
|
|
(wipefile): Do not grant read permission to file when wiping it.
|
|
|
|
|
|
Use symbolic permission (S_IWUSR), not octal.
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h (S_IWUSR): Define if not already defined.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_SEARCH_LIBS): Prefer rt to posix4, for Solaris 7.
|
|
|
|
|
|
(AC_CHECK_FUNCS): Remove gettimeofday.
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi: Document recent changes.
|
|
|
|
|
|
|
1999-04-02 04:20:17 +00:00
|
|
|
|
1999-04-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Add acl.
|
|
|
|
|
|
(AC_CHECK_HEADERS): Add sys/acl.h.
|
|
|
|
|
|
* src/ls.c [HAVE_SYS_ACL_H]: Include sys/acl.h.
|
|
|
|
|
|
(struct fileinfo): New member `have_acl'.
|
|
|
|
|
|
(gobble_file): Initialize it.
|
|
|
|
|
|
(print_long_format): Use it.
|
|
|
|
|
|
Mostly from Alen Muzinic.
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c (open_maybe_create): New function.
|
|
|
|
|
|
(touch): Rewrite not to use `creat' and to eliminate a race
|
|
|
|
|
|
condition that could make touch truncate a nonempty file.
|
|
|
|
|
|
Report and suggestions from Andrew Tridgell.
|
|
|
|
|
|
|
1999-04-01 05:16:46 +00:00
|
|
|
|
1999-03-31 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/du.c: Remove prototypes and tsort function definitions.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chown.c (main): Move the declaration of `e' into the scope
|
|
|
|
|
|
where it's used and make it `const'.
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (main): Qualify a char* with the `const' keyword.
|
|
|
|
|
|
(install_file_in_dir): Likewise.
|
|
|
|
|
|
* src/ln.c (main): Likewise.
|
|
|
|
|
|
* src/mkdir.c (main): Likewise.
|
|
|
|
|
|
* src/mkfifo.c (main): Likewise.
|
|
|
|
|
|
* src/mknod.c (main): Likewise.
|
|
|
|
|
|
* src/mv.c (main): Likewise.
|
|
|
|
|
|
* src/touch.c (touch): Likewise.
|
|
|
|
|
|
|
1999-03-31 06:02:07 +00:00
|
|
|
|
1999-03-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/*.c: Don't include closeout.h or version-etc.h explicitly.
|
|
|
|
|
|
Now, they're included via sys2.h.
|
|
|
|
|
|
|
1999-03-30 04:34:46 +00:00
|
|
|
|
1999-03-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (GNU_PACKAGE): Remove related code -- now it's in
|
|
|
|
|
|
the catch-all for shared autoconf code, m4/jm-macros.m4.
|
|
|
|
|
|
(jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
|
1999-03-30 04:48:57 +00:00
|
|
|
|
this instead.
|
|
|
|
|
|
|
|
|
|
|
|
1999-03-29 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Minor lint removal in code that forks and execs.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mkdir.c (mkdir): Use pid_t instead of int; check status
|
|
|
|
|
|
against zero. This is to improve portability.
|
|
|
|
|
|
* lib/rename.c (rename): Likewise.
|
|
|
|
|
|
* lib/rmdir.c (rmdir): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/rename.c (rename):
|
|
|
|
|
|
(rename): Do not print any error messages, so that the messages
|
|
|
|
|
|
are internationalized properly.
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (strip): Use standard "cannot fork" message.
|
|
|
|
|
|
Check for strip nonzero exit status.
|
1999-03-30 04:34:46 +00:00
|
|
|
|
|
1999-03-28 14:39:34 +00:00
|
|
|
|
1999-03-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-03-28 19:06:17 +00:00
|
|
|
|
`chmod =OP' did not properly apply the umask
|
|
|
|
|
|
* lib/modechange.c (make_node_op_equals): New function.
|
|
|
|
|
|
(mode_append_entry): Likewise.
|
|
|
|
|
|
(mode_compile): When none of [ugoa] is specified in an `=OP' change
|
|
|
|
|
|
mode request, insert a `=0' entry into the linked list so that all
|
|
|
|
|
|
bits are cleared first. Use the new functions.
|
|
|
|
|
|
Reported by Andrew Dalke.
|
|
|
|
|
|
|
|
|
|
|
|
New test for the above.
|
1999-03-28 14:39:34 +00:00
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/chmod/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add chmod.
|
|
|
|
|
|
* tests/chmod: New directory
|
|
|
|
|
|
* tests/chmod/equal-x: New file.
|
|
|
|
|
|
|
1999-03-27 14:32:36 +00:00
|
|
|
|
1999-03-27 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-03-28 14:39:34 +00:00
|
|
|
|
* lib/modechange.c (mode_compile): Upon allocation failure, free
|
|
|
|
|
|
everything starting with the head, not the tail.
|
|
|
|
|
|
|
1999-03-28 19:06:17 +00:00
|
|
|
|
* src/install.c (strip): Use pid_t, not int. From John Bley.
|
1999-03-27 14:32:36 +00:00
|
|
|
|
|
1999-03-26 14:26:38 +00:00
|
|
|
|
1999-03-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (PROGRAM_NAME, AUTHORS): Define
|
|
|
|
|
|
(long_options): Remove unused struct.
|
|
|
|
|
|
(scanargs): Remove useless loop.
|
|
|
|
|
|
(main): Use PROGRAM_NAME and AUTHORS in call to parse_long_options.
|
|
|
|
|
|
* src/mvdir.c: Likewise.
|
|
|
|
|
|
* src/sync.c (PROGRAM_NAME, AUTHORS): Define and use.
|
|
|
|
|
|
|
|
|
|
|
|
1999-03-25 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
|
|
|
|
|
|
(noinst_HEADERS): Add version-etc.h.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/long-options.c (parse_long_options): Remove version-, copyright-,
|
|
|
|
|
|
and author-printing code. Do it via version_etc.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/version-etc.c: New file.
|
|
|
|
|
|
* lib/version-etc.h: Prototype for same.
|
|
|
|
|
|
|
|
|
|
|
|
* src/sys2.h (GETOPT_HELP_CHAR): Define.
|
|
|
|
|
|
(GETOPT_VERSION_CHAR): Define.
|
|
|
|
|
|
(GETOPT_HELP_OPTION_DECL): Define.
|
|
|
|
|
|
(GETOPT_VERSION_OPTION_DECL): Define.
|
|
|
|
|
|
(case_GETOPT_HELP_CHAR): Define.
|
|
|
|
|
|
(case_GETOPT_VERSION_CHAR): Define.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chgrp.c: No longer include long-options.h.
|
|
|
|
|
|
Include version-etc.h instead.
|
|
|
|
|
|
(PROGRAM_NAME, AUTHORS): Define.
|
|
|
|
|
|
[long_options]: Add entries for --help and --version.
|
|
|
|
|
|
Remove parse_long_options call.
|
|
|
|
|
|
(main) [getopt switch]: Add a case for each of --help and --version.
|
|
|
|
|
|
* src/chgrp.c: Likewise.
|
|
|
|
|
|
* src/chmod.c: Likewise.
|
|
|
|
|
|
* src/cp.c: Likewise.
|
|
|
|
|
|
* src/df.c: Likewise.
|
|
|
|
|
|
* src/dircolors.c: Likewise.
|
|
|
|
|
|
* src/du.c: Likewise.
|
|
|
|
|
|
* src/install.c: Likewise.
|
|
|
|
|
|
* src/ln.c: Likewise.
|
|
|
|
|
|
* src/ls.c: Likewise.
|
|
|
|
|
|
* src/mkdir.c: Likewise.
|
|
|
|
|
|
* src/mkfifo.c: Likewise.
|
|
|
|
|
|
* src/mknod.c: Likewise.
|
|
|
|
|
|
* src/mv.c: Likewise.
|
|
|
|
|
|
* src/rm.c: Likewise.
|
|
|
|
|
|
* src/rmdir.c: Likewise.
|
|
|
|
|
|
* src/shred.c: Likewise.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
|
|
|
|
|
|
1999-03-24 13:48:48 +00:00
|
|
|
|
1999-03-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* man/help2man: Import version 1.010.
|
|
|
|
|
|
|
1999-03-22 22:36:39 +00:00
|
|
|
|
1999-03-22 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/chmod.c (usage): Add one-liner. Suggestion from Karl Berry.
|
|
|
|
|
|
|
1999-03-20 04:36:50 +00:00
|
|
|
|
1999-03-19 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-03-26 14:26:38 +00:00
|
|
|
|
* src/automake-wrap: Rewrite the automake-generated rule for
|
|
|
|
|
|
clean-binPROGRAMS so that it removes rm even with a losing PATH on a
|
|
|
|
|
|
losing system (PATH with `.' before /bin on a system where you can't
|
|
|
|
|
|
unlink a running executable). Reported by William Bader.
|
1999-03-20 04:36:50 +00:00
|
|
|
|
|
|
|
|
|
|
* configure.in: Use jm_WINSIZE_IN_PTEM.
|
|
|
|
|
|
* src/ls.c [WINSIZE_IN_PTEM]: Include sys/stream.h and sys/ptem.h.
|
|
|
|
|
|
Required by SCO ODT 2.0 systems. Reported by William Bader.
|
|
|
|
|
|
|
1999-03-18 15:34:12 +00:00
|
|
|
|
1999-03-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/remove.c (remove_cwd_entries): Reflect changes in hash_insert.
|
|
|
|
|
|
(remove_init): Call hash_initialize with one more argument.
|
|
|
|
|
|
|
1999-03-15 15:50:55 +00:00
|
|
|
|
1999-03-15 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
Revamp to allow fine-tuning to control when and by how
|
|
|
|
|
|
much the table grows and shrinks.
|
|
|
|
|
|
* lib/hash.c (next_prime): Don't assert.
|
|
|
|
|
|
(hash_reset_tuning): New function.
|
|
|
|
|
|
(check_tuning): New function.
|
|
|
|
|
|
(hash_initialize): Accept and use new tuning parameter.
|
|
|
|
|
|
(hash_rehash): Rewrite, updating for tuning.
|
|
|
|
|
|
(hash_insert): Honor tuning semantics.
|
|
|
|
|
|
(hash_delete): Likewise.
|
|
|
|
|
|
From Fran<61>ois Pinard.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.h (struct hash_tuning): Define.
|
|
|
|
|
|
(struct hash_table) [tuning]: Add member.
|
|
|
|
|
|
(hash_initialize): Add `tuning' parameter.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.c (hash_insert): Remove last parameter and change semantics.
|
|
|
|
|
|
* lib/hash.h (hash_insert): Update prototype.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.c (hash_insert): Don't increment n_entries unconditionally --
|
|
|
|
|
|
otherwise, we'd do so even when the insertion failed.
|
|
|
|
|
|
From Fran<61>ois Pinard.
|
|
|
|
|
|
|
1999-03-07 16:44:06 +00:00
|
|
|
|
1999-03-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-03-08 02:44:05 +00:00
|
|
|
|
* lib/xmalloc.c (xalloc_fail): Use "%s" format so the message doesn't
|
|
|
|
|
|
have to be scanned for % signs. Suggestion from Fran<61>ois Pinard.
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint: Add two more URLs and the loops to use them.
|
|
|
|
|
|
|
1999-03-07 16:44:06 +00:00
|
|
|
|
* lib/long-options.c (parse_long_options): Include `Copyright...' line
|
|
|
|
|
|
in --version output.
|
|
|
|
|
|
Add the `...NO warranty...' message.
|
|
|
|
|
|
|
1999-03-04 05:09:13 +00:00
|
|
|
|
1999-03-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/long-options.c (_): Define it.
|
|
|
|
|
|
(parse_long_options): Accept new parameter, authors, and print it.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/long-options.h: Update prototype.
|
|
|
|
|
|
|
1999-03-06 22:00:09 +00:00
|
|
|
|
* src/chgrp.c: Include long-options.h
|
1999-03-04 05:09:13 +00:00
|
|
|
|
[long_options]: Remove the "help" and "version" entries.
|
|
|
|
|
|
(main): Use parse_long_options, including author name(s).
|
|
|
|
|
|
Remove the show_version and show_help blocks.
|
1999-03-06 22:00:09 +00:00
|
|
|
|
* src/chmod.c: Likewise.
|
|
|
|
|
|
* src/chown.c: Likewise.
|
|
|
|
|
|
* src/cp.c: Likewise.
|
|
|
|
|
|
* src/dd.c: Likewise.
|
|
|
|
|
|
* src/df.c: Likewise.
|
|
|
|
|
|
* src/dircolors.c: Likewise.
|
|
|
|
|
|
* src/du.c: Likewise.
|
|
|
|
|
|
* src/install.c: Likewise.
|
|
|
|
|
|
* src/ln.c: Likewise.
|
|
|
|
|
|
* src/ls.c: Likewise.
|
|
|
|
|
|
* src/mkdir.c: Likewise.
|
|
|
|
|
|
* src/mkfifo.c: Likewise.
|
|
|
|
|
|
* src/mknod.c: Likewise.
|
|
|
|
|
|
* src/mv.c: Likewise.
|
|
|
|
|
|
* src/mvdir.c: Likewise.
|
|
|
|
|
|
* src/rm.c: Likewise.
|
|
|
|
|
|
* src/rmdir.c: Likewise.
|
|
|
|
|
|
* src/shred.c: Likewise.
|
|
|
|
|
|
* src/sync.c: Likewise.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
1999-03-04 05:09:13 +00:00
|
|
|
|
|
1999-02-19 07:33:55 +00:00
|
|
|
|
1999-02-18 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* getdate.y: <alloca.h>: Include if HAVE_ALLOCA_H, not FORCE_ALLOCA_H.
|
|
|
|
|
|
The FORCE_ALLOCA_H was a relic of the bad old pre-autoconf Emacs days.
|
|
|
|
|
|
|
|
|
|
|
|
1999-02-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c (wipename): Fix string thinko. Now, shredding files
|
|
|
|
|
|
in subdirectories works (dir/file). From Janos Farkas.
|
|
|
|
|
|
|
1999-02-14 03:29:33 +00:00
|
|
|
|
1999-02-13 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.c (dc_parse_stream): Don't try to dereference
|
|
|
|
|
|
NULL if there's an error in our built-in list.
|
|
|
|
|
|
Suggestion from Fran<61>ois Pinard.
|
|
|
|
|
|
|
1999-02-14 02:36:41 +00:00
|
|
|
|
1999-02-13 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (main): Set x.backup_type only if backups are requested.
|
|
|
|
|
|
(cp_option_init): Initialize backup_type.
|
|
|
|
|
|
(backup_type): Remove unused variable.
|
|
|
|
|
|
|
|
|
|
|
|
* doc/fileutils.texi: Fix use of @item vs @itemx.
|
|
|
|
|
|
|
1999-02-09 05:04:50 +00:00
|
|
|
|
1999-02-08 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.c (slack_codes): Add "DOOR".
|
|
|
|
|
|
(ls_codes): Add corresponding "do".
|
|
|
|
|
|
Reported by John Gotts.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add Italian (it).
|
|
|
|
|
|
|
1999-02-07 23:00:01 +00:00
|
|
|
|
1999-02-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-02-07 23:31:49 +00:00
|
|
|
|
* Version 4.0d (aka 4.1-b4).
|
|
|
|
|
|
|
1999-02-07 23:06:14 +00:00
|
|
|
|
* Makefile.maint (my-distcheck): Don't depend on dist, now that this
|
|
|
|
|
|
is hooked up to the distcheck rule.
|
|
|
|
|
|
* Makefile.am (distcheck-hook): New target and rule -- link to shared
|
|
|
|
|
|
rule, my-distcheck, in Makefile.maint.
|
|
|
|
|
|
|
1999-02-07 23:00:01 +00:00
|
|
|
|
* doc/fileutils.texi (shred invocation): New section. From Colin Plumb.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
|
|
|
|
|
|
group-member.m4, and just use this new macro.
|
|
|
|
|
|
Use `.$ac_objext', not the literal `.o'.
|
|
|
|
|
|
|
1999-02-03 05:42:15 +00:00
|
|
|
|
1999-02-02 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (S_ISLNK, S_ISFIFO, S_ISSOCK, S_ISCHR, S_ISBLK, S_ISDOOR):
|
|
|
|
|
|
Define to zero if not already defined.
|
|
|
|
|
|
(HAVE_SYMLINKS): Define.
|
|
|
|
|
|
(gobble_file): Remove #ifdef.
|
|
|
|
|
|
(get_link_name, make_link_path): Guard these with #if HAVE_SYMLINKS
|
|
|
|
|
|
rather than #ifdef S_ISLNK.
|
|
|
|
|
|
(print_type_indicator): Remove #ifdefs and reorganize.
|
|
|
|
|
|
(print_color_indicator): Remove #ifdefs.
|
|
|
|
|
|
(length_of_file_name_and_frills): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
1999-02-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.hin: Handle DOOR.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (print_type_indicator): Print doors as '>'.
|
|
|
|
|
|
(length_of_file_name_and_frills): Account for this.
|
|
|
|
|
|
(indicator_no): Define C_DOOR.
|
|
|
|
|
|
(indicator_name): Add corresponding name.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.c (ftypelet): Handle doors.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.c, src/system.h (S_ISDOOR): Define if missing.
|
|
|
|
|
|
|
1999-02-01 13:50:32 +00:00
|
|
|
|
1999-02-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strcasecmp.c (STRXCASECMP_FUNCTION): Don't increment within macro
|
|
|
|
|
|
argument list. From Akim Demaille.
|
|
|
|
|
|
|
1999-01-31 14:47:18 +00:00
|
|
|
|
1999-01-31 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-31 23:04:21 +00:00
|
|
|
|
* doc/fileutils.texi: Wrap the @top node in @ifnottex instead of
|
1999-01-31 23:15:38 +00:00
|
|
|
|
@ifinfo so `makeinfo --html ...' works. From Karl Berry.
|
1999-01-31 23:04:21 +00:00
|
|
|
|
|
1999-01-31 18:51:14 +00:00
|
|
|
|
* tests/ln/misc: Add test for this.
|
1999-01-31 18:44:14 +00:00
|
|
|
|
* src/ln.c (do_link): Allow creation of a hard link to a dangling
|
1999-01-31 18:44:34 +00:00
|
|
|
|
symlink. Reported by Alexey Solovyov.
|
1999-01-31 18:44:14 +00:00
|
|
|
|
|
1999-01-31 15:13:00 +00:00
|
|
|
|
* src/copy.c (copy_internal): Describe any backup-related renaming
|
|
|
|
|
|
operations when in verbose mode.
|
|
|
|
|
|
(copy_internal): Likewise.
|
|
|
|
|
|
Based on changes from Marty Leisner.
|
|
|
|
|
|
|
1999-01-31 18:44:48 +00:00
|
|
|
|
* lib/lchown.c: Declare chown.
|
1999-01-31 14:47:18 +00:00
|
|
|
|
|
1999-01-30 15:53:25 +00:00
|
|
|
|
1999-01-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* acconfig.h: Remove uintmax and STAT* #undefs.
|
|
|
|
|
|
* configure.in: Require autoconf 2.13.
|
|
|
|
|
|
Remove test for AFS.
|
|
|
|
|
|
Use 3-argument form of AC_DEFINE*.
|
|
|
|
|
|
|
1999-01-29 05:15:49 +00:00
|
|
|
|
1999-01-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* po/POTFILES.in: Add src/shred.c.
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h: Use TIME_WITH_SYS_TIME-based #if test rather than
|
|
|
|
|
|
TM_IN_SYS_TIME based one (for shred).
|
|
|
|
|
|
|
|
|
|
|
|
* acconfig.h: Remove lots of `#undef's, now that we use the
|
|
|
|
|
|
3-argument forms of AC_DEFINE* macros.
|
|
|
|
|
|
|
1999-01-25 15:19:36 +00:00
|
|
|
|
1999-01-25 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-25 15:23:44 +00:00
|
|
|
|
* configure.in (fdatasync): Use AC_CHECK_FUNCS instead of
|
|
|
|
|
|
AC_REPLACE_FUNCS.
|
|
|
|
|
|
(AC_CHECK_FUNCS): Add clock_gettime.
|
|
|
|
|
|
|
1999-01-25 15:19:36 +00:00
|
|
|
|
* src/shred.c (isaac_seed): Guard clock_gettime with test of
|
|
|
|
|
|
HAVE_CLOCK_GETTIME, not CLOCK_REALTIME.
|
|
|
|
|
|
(wipename): Rename local dirfd to dir_fd to avoid shadowing the
|
|
|
|
|
|
function declared in Linux's dirent.h.
|
|
|
|
|
|
|
1999-01-25 15:23:44 +00:00
|
|
|
|
1999-01-25 Akim Demaille <demaille@inf.enst.fr>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.h (ARRAY_CARDINALITY): Define.
|
|
|
|
|
|
(ARGMATCH_ASSERT): New macro.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c (program_name): Remove dcl.
|
|
|
|
|
|
Include error.h.
|
|
|
|
|
|
(argmatch_invalid): Use error rather than fprintf.
|
|
|
|
|
|
|
1999-01-24 15:11:00 +00:00
|
|
|
|
1999-01-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-25 00:34:39 +00:00
|
|
|
|
* src/ansi2knr.c: Exit nonzero upon failed write to stdout.
|
1999-01-25 05:51:07 +00:00
|
|
|
|
New version from L. Peter Deutsch.
|
1999-01-25 00:34:39 +00:00
|
|
|
|
|
1999-01-25 00:17:40 +00:00
|
|
|
|
* lib/quotearg.c (quotearg_n_options): Revert type of parameter `n'
|
|
|
|
|
|
(and hence that of the local `n1', too) to `int' at Paul's request.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/closeout.c: Add comments.
|
|
|
|
|
|
|
1999-01-24 15:11:00 +00:00
|
|
|
|
* src/shred.c (fdatasync): Remove function. instead, ...
|
|
|
|
|
|
(fdatasync) [! HAVE_FDATASYNC]: Define to fsync.
|
|
|
|
|
|
From Colin Plumb.
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-23 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (bin_PROGRAMS): Add shred.
|
|
|
|
|
|
* src/shred.c: New file.
|
|
|
|
|
|
Portability tweaks.
|
|
|
|
|
|
Internationalize.
|
|
|
|
|
|
(wipename): Print the `FILE: deleted' and `FILE: deleting' messages
|
|
|
|
|
|
only when in verbose mode.
|
|
|
|
|
|
(fdatasync) [! HAVE_FDATASYNC]: New function.
|
|
|
|
|
|
|
|
|
|
|
|
* man/Makefile.am (man_MANS): Add shred.1.
|
|
|
|
|
|
* man/Makefile.summ (shred-summary): Define.
|
|
|
|
|
|
* man/shred.x: New file.
|
|
|
|
|
|
|
|
|
|
|
|
* src/shred.c: New file. From Colin Plumb.
|
|
|
|
|
|
Include config.h, getopt.h, system.h and error.h.
|
|
|
|
|
|
Use #else/#if, not #elif.
|
|
|
|
|
|
|
1999-01-19 04:47:33 +00:00
|
|
|
|
1998-11-05 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mktime.c (__mktime_internal): Adopt the traditional (and
|
|
|
|
|
|
problematic) notion of what to do when tm_isdst doesn't match.
|
|
|
|
|
|
|
1999-01-17 18:14:28 +00:00
|
|
|
|
1999-01-17 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-18 17:14:35 +00:00
|
|
|
|
* tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set PATH here, rather
|
|
|
|
|
|
than setting RM and CP.
|
|
|
|
|
|
* tests/cp/*: Now that PATH is set properly, use rm and cp rather
|
|
|
|
|
|
than $RM and $CP.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ln/Makefile.am (TESTS): Add backup-1.
|
|
|
|
|
|
(TESTS_ENVIRONMENT): Set PATH here, rather than setting LN.
|
|
|
|
|
|
* tests/ln/*: Now that PATH is set properly, use ln rather than $LN.
|
|
|
|
|
|
* tests/ln/backup-1: New test for this.
|
|
|
|
|
|
* src/ln.c (do_link): Try to remove DEST even after renaming it.
|
|
|
|
|
|
This fixes a bug reported by Jamie Lokier.
|
|
|
|
|
|
|
1999-01-17 18:14:28 +00:00
|
|
|
|
* src/ln.c (same_name): Use SAME_INODE rather than open coding it.
|
|
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
1999-01-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-17 18:14:28 +00:00
|
|
|
|
* lib/argmatch.c (ARGMATCH_DIE_DECL): Use it.
|
|
|
|
|
|
|
|
|
|
|
|
* acconfig.h: Remove @BOTTOM@ section.
|
|
|
|
|
|
Instead, add the define and decl via m4/jm-macros.m4.
|
|
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
* src/ls.c: Don't declare base_name.
|
|
|
|
|
|
Use function-style XARGMATCH once again.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
|
|
|
|
|
* acconfig.h: Add a @BOTTOM@ section.
|
|
|
|
|
|
(ARGMATCH_DIE) [@BOTTOM@]: Define to usage(1).
|
|
|
|
|
|
Declare usage.
|
1999-01-17 18:14:28 +00:00
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
* src/cp.c: Remove declarations of base_name and get_version.
|
|
|
|
|
|
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
|
|
|
|
|
|
Use xget_version and function-style XARGMATCH.
|
|
|
|
|
|
* src/mv.c (main): Likewise.
|
|
|
|
|
|
* src/ln.c (main): Likewise.
|
|
|
|
|
|
* src/install.c (main): Likewise.
|
|
|
|
|
|
* lib/quotearg.c (quotearg_n_options): Declare n1 to be of type
|
|
|
|
|
|
unsigned int, not just int.
|
|
|
|
|
|
* lib/backupfile.h (get_version): Adjust prototype.
|
|
|
|
|
|
(xget_version): Add prototype.
|
|
|
|
|
|
(base_name): Remove prototype.
|
|
|
|
|
|
* lib/backupfile.c [!HAVE_DECL_GETENV]: Declare getenv.
|
|
|
|
|
|
(backup_args): Reorder enum members.
|
|
|
|
|
|
(backup_types): Likewise.
|
|
|
|
|
|
(get_version): Take an additional parameter, `context'.
|
|
|
|
|
|
(xget_version): Like get_version, but if the `version' argument is NULL,
|
|
|
|
|
|
use the value of the envvar VERSION_CONTROL.
|
|
|
|
|
|
(base_name): Declare.
|
|
|
|
|
|
Mostly from Akim Demaille.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/addext.c: (base_name): Declare.
|
|
|
|
|
|
* src/sys2.h: Add prototype for base_name.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c: s/argmatch_exit_failure/argmatch_die/
|
|
|
|
|
|
* lib/argmatch.h: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.h (XARGMATCH): Define to return a value once again.
|
|
|
|
|
|
(XARGCASEMATCH): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c (EXIT_FAILURE): Define.
|
|
|
|
|
|
(ARGMATCH_DIE): Provide default.
|
|
|
|
|
|
(__xargmatch_internal): New function.
|
|
|
|
|
|
s/rogram_name/program_name.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-14 Akim Demaille <demaille@inf.enst.fr>
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c (usage): Don't make it static so that it can be
|
|
|
|
|
|
called from libfu.a by xargmatch.
|
|
|
|
|
|
* src/chgrp.c (usage): Likewise
|
|
|
|
|
|
* src/chmod.c (usage): Likewise
|
|
|
|
|
|
* src/chown.c (usage): Likewise
|
|
|
|
|
|
* src/cp.c (usage): Likewise
|
|
|
|
|
|
* src/dd.c (usage): Likewise
|
|
|
|
|
|
* src/df.c (usage): Likewise
|
|
|
|
|
|
* src/dircolors.c (usage): Likewise
|
|
|
|
|
|
* src/du.c (usage): Likewise
|
|
|
|
|
|
* src/install.c (usage): Likewise
|
|
|
|
|
|
* src/ln.c (usage): Likewise
|
|
|
|
|
|
* src/ls.c (usage): Likewise
|
|
|
|
|
|
* src/mkdir.c (usage): Likewise
|
|
|
|
|
|
* src/mkfifo.c (usage): Likewise
|
|
|
|
|
|
* src/mknod.c (usage): Likewise
|
|
|
|
|
|
* src/mv.c (usage): Likewise
|
|
|
|
|
|
* src/mvdir.c (usage): Likewise
|
|
|
|
|
|
* src/rm.c (usage): Likewise
|
|
|
|
|
|
* src/rmdir.c (usage): Likewise
|
|
|
|
|
|
* src/sync.c (usage): Likewise
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-12 Akim Demaille <demaille@inf.enst.fr>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/backupfile.c (get_version): added the parameters KIND.
|
|
|
|
|
|
(xget_version): like get_version, but if argument is NULL, honor
|
|
|
|
|
|
the envvar VERSION_CONTROL.
|
|
|
|
|
|
* src/cp.c: Remove declarations of base_name and get_version.
|
|
|
|
|
|
(main): Use xget_version.
|
|
|
|
|
|
* src/mv.c (main): Likewise.
|
|
|
|
|
|
* src/ln.c (main): Likewise.
|
|
|
|
|
|
* src/install.c (main): Likewise.
|
|
|
|
|
|
|
1999-01-13 05:42:38 +00:00
|
|
|
|
1999-01-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add Greek (el).
|
|
|
|
|
|
* po/el.po: New file.
|
|
|
|
|
|
|
|
|
|
|
|
* install-sh: New version from autoconf.
|
|
|
|
|
|
* missing: New version from automake.
|
|
|
|
|
|
* src/ansi2knr.c: Likewise.
|
|
|
|
|
|
* lib/getopt.c: New version from glibc.
|
|
|
|
|
|
* lib/getopt.h: Likewise.
|
|
|
|
|
|
* lib/getopt1.c: Likewise.
|
|
|
|
|
|
* lib/regex.c: Likewise.
|
|
|
|
|
|
* lib/regex.h: Likewise.
|
|
|
|
|
|
* lib/ylwrap: Remove unused file.
|
|
|
|
|
|
|
1999-01-11 03:23:14 +00:00
|
|
|
|
1999-01-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-02-07 23:34:24 +00:00
|
|
|
|
* Version 4.0c (aka 4.1-b3).
|
1999-01-11 04:14:29 +00:00
|
|
|
|
|
|
|
|
|
|
* Upgrade to autoconf-2.13 and automake-1.3b.
|
|
|
|
|
|
|
1999-01-11 03:23:14 +00:00
|
|
|
|
* src/copy.c (copy_internal): Handle two more values of errno from
|
|
|
|
|
|
failed rename of a directory into a subdirectory of itself.
|
|
|
|
|
|
Thanks to Volker Borchert for testing many types and combinations
|
|
|
|
|
|
of systems.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c (ARGMATCH_QUOTING_STYLE): Change from c_quoting_style
|
|
|
|
|
|
to escape_quoting_style.
|
|
|
|
|
|
(argmatch_invalid): Now that the quoted quantity is no longer double
|
|
|
|
|
|
quoted, remove the code that removed leading and trailing double quotes.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (decode_switches): Now that escape_quoting_style no longer
|
|
|
|
|
|
escapes the SPACE character, arrange for SPACEs to be quoted here.
|
|
|
|
|
|
* lib/quotearg.c (quotearg_buffer): Change escape_quoting_style so that
|
|
|
|
|
|
it no longer escapes ` '.
|
|
|
|
|
|
Suggestion from Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (space): Add `for' in message of statvfs check.
|
|
|
|
|
|
From Ulrich Drepper.
|
|
|
|
|
|
|
1999-01-05 05:09:52 +00:00
|
|
|
|
1999-01-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-05 05:10:14 +00:00
|
|
|
|
* Version 4.1-b2.
|
1999-01-05 05:09:52 +00:00
|
|
|
|
|
1999-01-02 19:30:05 +00:00
|
|
|
|
1999-01-02 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-02 20:38:45 +00:00
|
|
|
|
* lib/argmatch.c (argmatch_invalid): Remove double quotes from the
|
|
|
|
|
|
offending quoted argument before using it in explanatory diagnostic.
|
|
|
|
|
|
Use a single fprintf stmt.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.h (XARGMATCH): Don't return a value; instead,
|
|
|
|
|
|
modify a parameter. Add a `Die_stmt' parameter.
|
|
|
|
|
|
Add parentheses.
|
|
|
|
|
|
* lib/argmatch.c (__xargmatch_internal): Remove now-unused function.
|
|
|
|
|
|
(argmatch_to_argument): Add `const' attribute to first parameter.
|
|
|
|
|
|
|
1999-01-02 20:07:41 +00:00
|
|
|
|
* configure.in (AC_REPLACE_FUNCS): Remove strcasecmp (now it's
|
|
|
|
|
|
done in m4/jm-macros.m4).
|
|
|
|
|
|
|
1999-01-02 19:30:05 +00:00
|
|
|
|
* lib/backupfile.c (get_version): Adapt to use new interface to
|
|
|
|
|
|
XARGMATCH.
|
|
|
|
|
|
* src/cp.c: Likewise.
|
|
|
|
|
|
* src/ls.c: Likewise.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
|
|
|
|
|
|
1999-01-01 07:06:23 +00:00
|
|
|
|
1999-01-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-02 05:17:17 +00:00
|
|
|
|
* lib/makepath.c (make_dir): New function, factored out of make_path.
|
|
|
|
|
|
(make_path): Use make_dir rather than open-coding it twice.
|
|
|
|
|
|
This effectively reverses the order of the latter pair of stat/mkdir
|
|
|
|
|
|
calls and fixes a race condition bug whereby one of two concurrent
|
|
|
|
|
|
`mkdir -p' processes could fail with EEXIST.
|
1999-01-02 12:45:50 +00:00
|
|
|
|
Include locale.h and libintl.h, and define `_()'.
|
|
|
|
|
|
Mark translatable strings.
|
1999-01-02 05:17:17 +00:00
|
|
|
|
|
1999-01-01 17:43:50 +00:00
|
|
|
|
* lib/xmalloc.c: Add comments.
|
|
|
|
|
|
(xcalloc, xmalloc, xrealloc): Remove prototypes.
|
|
|
|
|
|
(xcalloc): Remove `#ifdef NOT_USED' that used to hide this function.
|
|
|
|
|
|
* lib/xalloc.h: Add comments.
|
|
|
|
|
|
(PARAMS, XMALLOC, XCALLOC, XREALLOC): Define.
|
|
|
|
|
|
(xcalloc, xmalloc, xrealloc): Add prototypes here.
|
|
|
|
|
|
Based on changes from Akim Demaille.
|
|
|
|
|
|
|
1999-01-01 07:06:23 +00:00
|
|
|
|
* lib/quotearg.c (quotearg_buffer): Cast -1 to size_t before comparing.
|
|
|
|
|
|
(quotearg_n): Change type of 1st parameter from int to unsigned int.
|
|
|
|
|
|
(quotearg_n_options): Likewise.
|
1999-01-01 17:43:50 +00:00
|
|
|
|
* lib/quotearg.h (quoting_style_vals): New public array.
|
1999-01-01 07:06:23 +00:00
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
(quotearg_n_options): Declare `options' parameter to be `const'.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.c (humblock): Use ARGMATCH in place of argmatch.
|
|
|
|
|
|
|
1999-01-02 19:30:05 +00:00
|
|
|
|
* lib/backupfile.c (get_version): Use XARGMATCH in place of
|
1999-01-01 07:06:23 +00:00
|
|
|
|
argmatch & co.
|
|
|
|
|
|
|
1998-12-31 21:59:58 +00:00
|
|
|
|
1998-12-31 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (indicator_style_types): New variable.
|
|
|
|
|
|
(format_types): Rename from `formats'.
|
|
|
|
|
|
(color_args): Remove unnecessary `no' string.
|
|
|
|
|
|
(color_types): Remove corresponding `color_never' entry.
|
|
|
|
|
|
(main): Use ARGMATCH_TO_ARGUMENT.
|
1999-01-02 19:30:05 +00:00
|
|
|
|
(decode_switches): Use ARGMATCH instead of argmatch code
|
1998-12-31 21:59:58 +00:00
|
|
|
|
in each of several cases.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-01-02 19:30:05 +00:00
|
|
|
|
* src/cp.c (main): Use XARGMATCH in place of argmatch & co.
|
1998-12-31 21:59:58 +00:00
|
|
|
|
* src/touch.c (main): Likewise.
|
1999-01-01 07:06:23 +00:00
|
|
|
|
* lib/backupfile.c (get_version): Likewise.
|
1998-12-31 21:59:58 +00:00
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1999-01-02 19:30:05 +00:00
|
|
|
|
* lib/strncasecmp.c: New file.
|
|
|
|
|
|
* lib/strcasecmp.c: Add #ifdefs so it can be used for strncasecmp, too.
|
1998-12-31 21:59:58 +00:00
|
|
|
|
* lib/argmatch.c (strncasecmp): Move to a separate file.
|
|
|
|
|
|
Add curly braces around some one-stmt-but-multiline blocks.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/argmatch.c: Improvements from Akim Demaille.
|
|
|
|
|
|
* lib/argmatch.h: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/addext.c (addext): Protoize.
|
|
|
|
|
|
Indent cpp directives to match nesting.
|
|
|
|
|
|
|
|
|
|
|
|
Fix warnings from gcc -W -Wall
|
|
|
|
|
|
* lib/posixtm.c (posix_time_parse): Change type of index `i' from
|
|
|
|
|
|
int to unsigned int.
|
|
|
|
|
|
* lib/getdate.y (__attribute__): Define.
|
|
|
|
|
|
(ATTRIBUTE_UNUSED): Define.
|
|
|
|
|
|
(yyerror): Mark parameter as unused with ATTRIBUTE_UNUSED.
|
|
|
|
|
|
(MonthDayTable): Add initializers for last entry.
|
|
|
|
|
|
(UnitsTable): Likewise.
|
|
|
|
|
|
(OtherTable): Likewise.
|
|
|
|
|
|
(MilitaryTable): Likewise.
|
|
|
|
|
|
|
1998-12-22 21:57:52 +00:00
|
|
|
|
1998-12-22 Jim Meyering <meyering@ascend.com>
|
1998-12-18 14:22:30 +00:00
|
|
|
|
|
|
|
|
|
|
* Version 4.1-b1.
|
|
|
|
|
|
|
1998-12-22 21:57:52 +00:00
|
|
|
|
* configure.in (ALL_LINGUAS): Add chinese (zh).
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-19 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-12-20 02:31:54 +00:00
|
|
|
|
* tests/ln/misc: Use absolute path for final rm.
|
|
|
|
|
|
|
1998-12-19 13:53:37 +00:00
|
|
|
|
* Makefile.maint (my-distcheck): Run make with
|
|
|
|
|
|
CFLAGS='-Wformat -Werror'.
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-12-18 14:22:30 +00:00
|
|
|
|
* src/copy.c (copy_internal): Remove errnoeous `%s: ' prefix
|
|
|
|
|
|
from format string. From Michiel Bacchiani.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chgrp.c (MAXGID): Define.
|
|
|
|
|
|
Use gid_t (not int) as the type for `group' variables.
|
|
|
|
|
|
(parse_group): Use MAXGID, not INT_MAX.
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (UID_T_MAX, GID_T_MAX): Remove definitions.
|
|
|
|
|
|
* src/sys2.h (UID_T_MAX, GID_T_MAX): Define them here instead.
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-13 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (EXTRA_DIST): Add xstat.in.
|
|
|
|
|
|
|
1998-12-12 06:22:56 +00:00
|
|
|
|
1998-12-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-15 Akim Demaille <demaille@inf.enst.fr>
|
|
|
|
|
|
* src/ls.c: Group DIRED's code together.
|
|
|
|
|
|
(full_time, inhibit_group, col_ext_type): Declare static.
|
|
|
|
|
|
(dired_dump_obstack): Apply sizeof to variable, instead of its type.
|
|
|
|
|
|
(parse_ls_color): Rename ext2 as e2. Move into the block where it
|
|
|
|
|
|
is used.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-15 Akim Demaille <demaille@inf.enst.fr>
|
|
|
|
|
|
* src/ls.c: In order to distinguish col(umn|or):
|
|
|
|
|
|
(init_column_info): Renamed from init_col_info.
|
|
|
|
|
|
(struct column_info): Renamed from struct col_info.
|
|
|
|
|
|
(struct color_ext_type): Renamed from struct col_ext_type.
|
|
|
|
|
|
|
1998-12-11 14:13:40 +00:00
|
|
|
|
1998-12-11 Jim Meyering <meyering@ascend.com>
|
1998-12-06 23:09:39 +00:00
|
|
|
|
|
1998-12-12 05:46:44 +00:00
|
|
|
|
* lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
|
|
|
|
|
|
(stat.c): Likewise.
|
|
|
|
|
|
* lib/stat.c: Remove file.
|
|
|
|
|
|
* lib/lstat.c: Remove file.
|
|
|
|
|
|
* lib/xstat.in (xstat@): New file.
|
|
|
|
|
|
|
1998-12-11 14:13:40 +00:00
|
|
|
|
* lib/quotearg.c (quotearg_buffer): Use `7' as the mask, not `3'.
|
|
|
|
|
|
From Bruno Haible.
|
|
|
|
|
|
* tests/ls-2/tests: Add a test for this.
|
|
|
|
|
|
|
|
|
|
|
|
* man/help2man: import version 1.006.
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-12-07 06:21:12 +00:00
|
|
|
|
* src/copy.c: Use dir_name, not dirname. Include dirname.h.
|
|
|
|
|
|
* src/cp.c: Likewise.
|
|
|
|
|
|
* src/df.c: Likewise.
|
|
|
|
|
|
* src/install.c: Likewise.
|
|
|
|
|
|
* src/ln.c: Likewise.
|
|
|
|
|
|
* src/mvdir.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/dirname.c (dir_name): Rename from dirname.
|
|
|
|
|
|
Make argument `const'. Include "dirname.h"
|
|
|
|
|
|
* lib/dirname.h: New file.
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add dirname.h.
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-06 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-12-07 05:14:42 +00:00
|
|
|
|
* lib/rpmatch.c (rpmatch) [!ENABLE_NLS]: Hard-code tests to use
|
1998-12-07 05:18:06 +00:00
|
|
|
|
`^[yY]' and `^[nN]' (avoiding regex). From Karl Heuer.
|
1998-12-07 05:14:42 +00:00
|
|
|
|
|
1998-12-07 03:12:21 +00:00
|
|
|
|
* lib/*.c: Ansideclify.
|
|
|
|
|
|
|
1998-12-06 23:09:39 +00:00
|
|
|
|
Fix `ls -R .' formatting bug that broke mktexlsr.
|
|
|
|
|
|
* src/ls.c: Include path-concat.h.
|
|
|
|
|
|
(basename_is_dot_or_dotdot): New function, derived from
|
|
|
|
|
|
is_not_dot_or_dotdot.
|
|
|
|
|
|
(is_not_dot_or_dotdot): Remove function.
|
|
|
|
|
|
(extract_dirs_from_files): Use `!basename_is_dot_or_dotdot'
|
|
|
|
|
|
instead of is_not_dot_or_dotdot and use path_concat instead of attach.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls-2/tests: New file (renamed from quoting),
|
|
|
|
|
|
with new test for the `ls -R .' fix.
|
|
|
|
|
|
* tests/ls-2/quoting: Remove file.
|
|
|
|
|
|
* tests/ls-2/Makefile.am (TESTS): s/quoting/tests/.
|
|
|
|
|
|
|
1998-11-30 02:54:28 +00:00
|
|
|
|
1998-11-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-12-06 21:06:22 +00:00
|
|
|
|
* src/remove.c (DOT_OR_DOTDOT): Move definition from this file...
|
|
|
|
|
|
* src/sys2.h (DOT_OR_DOTDOT): ...to this one.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dd.c (dd_copy): Rename function from `copy'.
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp.c (do_copy): Rename local: s/unused/copy_into_self/.
|
|
|
|
|
|
|
1998-11-30 02:54:28 +00:00
|
|
|
|
Per Kristian Hove reported that a certain move-directory-into-self
|
|
|
|
|
|
wasn't properly diagnosed.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/into-self-3: New file.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add into-self-3.
|
|
|
|
|
|
* src/copy.c (copy_internal): Remove earlier (but less effective)
|
|
|
|
|
|
test for move/copy-into-self.
|
|
|
|
|
|
Instead, deduce the move-into-self condition from errno==EINVAL
|
|
|
|
|
|
after a failed rename.
|
|
|
|
|
|
* src/mv.c (do_move): Don't arrange to remove DEST in the
|
|
|
|
|
|
copied-into-self case.
|
|
|
|
|
|
|
1998-11-15 17:35:45 +00:00
|
|
|
|
1998-11-15 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-11-30 02:54:28 +00:00
|
|
|
|
Bob McCracken reported that mv couldn't handle certain combinations
|
|
|
|
|
|
of hard linked source files.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/hard-link-1: New file.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add hard-link-1.
|
|
|
|
|
|
* src/mv.c (movefile): Don't free new_dest.
|
|
|
|
|
|
|
1998-11-15 17:35:45 +00:00
|
|
|
|
* lib/error.c (error): Don't use strerror_r's return value.
|
1998-11-15 17:36:02 +00:00
|
|
|
|
From Johan Danielsson.
|
1998-11-15 17:35:45 +00:00
|
|
|
|
|
1998-11-14 13:15:22 +00:00
|
|
|
|
1998-11-14 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 4.0.
|
|
|
|
|
|
|
1998-11-14 15:33:42 +00:00
|
|
|
|
* Makefile.maint (cvs-dist): Search for `$tag:' rather than just $tag
|
|
|
|
|
|
to avoid matching a prefix of another tag.
|
|
|
|
|
|
|
1998-11-14 13:13:50 +00:00
|
|
|
|
1998-11-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1999-01-30 15:53:25 +00:00
|
|
|
|
* configure.in (ALL_LINGUAS): Add Greek (el).
|
|
|
|
|
|
* po/el.po: New file.
|
1998-11-14 13:13:50 +00:00
|
|
|
|
|
1998-11-08 03:42:04 +00:00
|
|
|
|
1998-11-07 Jim Meyering <meyering@ascend.com>
|
1998-11-01 00:12:41 +00:00
|
|
|
|
|
|
|
|
|
|
* Version 4.0-b7.
|
|
|
|
|
|
|
1998-11-08 03:42:04 +00:00
|
|
|
|
Accommodate the Hurd (defining lstat to rpl_lstat via config.h didn't
|
|
|
|
|
|
work on Hurd systems because of an inline definition of lstat in a
|
|
|
|
|
|
system header file). This also makes it so that you may run `ls '' '
|
|
|
|
|
|
on systems that let l?stat operate on the empty string.
|
|
|
|
|
|
|
|
|
|
|
|
* src/remove.c [HAVE_LSTAT_EMPTY_STRING_BUG]: Define lstat to rpl_lstat
|
|
|
|
|
|
and declare the latter.
|
|
|
|
|
|
* lib/stat.c [stat]: Remove #undef.
|
|
|
|
|
|
(rpl_stat): Protoize.
|
|
|
|
|
|
* lib/lstat.c [lstat]: Remove #undef.
|
|
|
|
|
|
(rpl_lstat): Protoize. Use ENOENT, not EINVAL, to be consistent
|
|
|
|
|
|
with lib/stat.c.
|
|
|
|
|
|
* acconfig.h: Remove #undef's for lstat and stat.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-31 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-11-01 00:12:41 +00:00
|
|
|
|
* tests/rm/Makefile.am (TESTS): Add new test `empty-name',
|
|
|
|
|
|
but comment it out.
|
|
|
|
|
|
* tests/rm/empty-name: New file.
|
1998-11-01 05:26:06 +00:00
|
|
|
|
|
1998-11-01 00:12:41 +00:00
|
|
|
|
* acconfig.h (stat): New #undef.
|
1998-11-01 05:26:06 +00:00
|
|
|
|
This omission was uncovered when Mark Kettenis reported that
|
|
|
|
|
|
`rm -r ''' got a failed assertion on the Hurd. This change
|
1998-11-08 03:42:04 +00:00
|
|
|
|
doesn't fix *that* problem -- see above.
|
1998-11-01 00:12:41 +00:00
|
|
|
|
|
1998-10-25 13:58:56 +00:00
|
|
|
|
1998-10-25 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-11-01 00:12:41 +00:00
|
|
|
|
* Version 4.0-b6.
|
|
|
|
|
|
|
1998-10-25 14:30:46 +00:00
|
|
|
|
* README: Man pages will now be supported to the extent that
|
|
|
|
|
|
people send patches.
|
|
|
|
|
|
|
1998-10-25 14:28:04 +00:00
|
|
|
|
* tests/rm/unreadable: Two new tests.
|
|
|
|
|
|
* tests/rm/Makefile.am (TESTS): Add new test `unreadable'. But comment
|
|
|
|
|
|
it out since we're so close to release and since the test compares the
|
|
|
|
|
|
text of diagnostics that are likely to vary between systems.
|
|
|
|
|
|
(TEST_ENVIRONMENT): Add required framework.
|
|
|
|
|
|
|
1998-10-25 13:58:56 +00:00
|
|
|
|
* src/remove.c (remove_cwd_entries): Don't apply CLOSEDIR to a NULL
|
|
|
|
|
|
pointer. (provoke with `mkdir -m 0100 x; rm -rf x')
|
|
|
|
|
|
Upon CLOSEDIR failure, set `status' to RM_ERROR, not RM_OK.
|
|
|
|
|
|
(remove_dir): Return `status', rather than always RM_OK.
|
|
|
|
|
|
|
1998-10-18 14:14:09 +00:00
|
|
|
|
1998-10-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 4.0-b5.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mktime.c: Update from libc with this additional change from Paul.
|
|
|
|
|
|
* lib/strftime.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-17 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Don't invoke localtime_r or gmtime_r unless it's the GNU C
|
|
|
|
|
|
library's localtime_r and gmtime_r; there are too many buggy
|
|
|
|
|
|
implementations of localtime_r and gmtime_r out there, and
|
|
|
|
|
|
it's not worth keeping track of all the different bugs.
|
|
|
|
|
|
|
|
|
|
|
|
* mktime.c (__EXTENSIONS__, HAVE_LOCALTIME_R): Remove.
|
|
|
|
|
|
(my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
|
|
|
|
|
|
Base it on localtime unless _LIBC.
|
|
|
|
|
|
|
|
|
|
|
|
* strftime.c (__EXTENSIONS__): Remove.
|
|
|
|
|
|
(my_strftime_gmtime_r): Renamed from gmtime_r; all uses changed.
|
|
|
|
|
|
(my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
|
|
|
|
|
|
Base them on localtime/gmtime if not _LIBC.
|
|
|
|
|
|
|
1998-10-18 01:49:44 +00:00
|
|
|
|
1998-10-17 Jim Meyering <meyering@ascend.com>
|
1998-10-17 12:39:57 +00:00
|
|
|
|
|
1998-10-18 01:50:53 +00:00
|
|
|
|
* Version 4.0-b4.
|
|
|
|
|
|
|
1998-10-18 01:49:44 +00:00
|
|
|
|
* lib/mktime.c: Declare localtime_r if necessary.
|
|
|
|
|
|
* lib/strftime.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/Fetish.pm (run_tests): Run $prog with --version only
|
|
|
|
|
|
if $verbose.
|
1998-10-17 12:39:57 +00:00
|
|
|
|
|
1998-10-12 03:51:35 +00:00
|
|
|
|
1998-10-11 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 4.0-b3.
|
|
|
|
|
|
|
1998-10-11 23:04:04 +00:00
|
|
|
|
1998-10-08 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
* mktime.c (__mktime_internal): When the requested time falls
|
|
|
|
|
|
in a spring-forward gap of size DT, return a time that is DT
|
|
|
|
|
|
away from the requested time, preferring a time whose tm_isdst
|
|
|
|
|
|
differs from the requested value. Bump the max number of
|
|
|
|
|
|
probes from 4 to 6 to account for the extra probes needed to
|
|
|
|
|
|
discover a spring-forward gap in the worst case.
|
1998-10-11 23:04:04 +00:00
|
|
|
|
|
1998-10-08 12:24:40 +00:00
|
|
|
|
1998-10-08 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
|
|
|
|
|
|
Define also if HAVE_LOCALTIME_R && defined (localtime_r), with
|
|
|
|
|
|
a body that merely expands localtime_r; this works around a
|
|
|
|
|
|
bug in Digital Unix 4.0A and 4.0D.
|
|
|
|
|
|
|
1998-10-05 12:27:03 +00:00
|
|
|
|
1998-10-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-10-08 12:24:40 +00:00
|
|
|
|
* po/Makefile.in.in (uninstall): Remove (historical?) command that
|
|
|
|
|
|
removed po-Makefile.in.in. From Akim Demaille.
|
|
|
|
|
|
|
1998-10-05 12:27:03 +00:00
|
|
|
|
* src/install.c (long_options): Add entry for --suffix=SUFFIX option.
|
|
|
|
|
|
From aldomel.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS_ENVIRONMENT): Define PERL.
|
|
|
|
|
|
From Kaveh Ghazi.
|
|
|
|
|
|
|
1998-10-03 16:49:01 +00:00
|
|
|
|
1998-10-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-10-04 01:03:51 +00:00
|
|
|
|
* Version 4.0-b2.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS_ENVIRONMENT): Add PATH.
|
|
|
|
|
|
|
1998-10-03 19:50:10 +00:00
|
|
|
|
* man/Makefile.maint ($(man_MANS)): Don't depend on actual executables.
|
|
|
|
|
|
Instead, depend on corresponding source file and on configure.in.
|
|
|
|
|
|
Based on suggestion and code from Akim Demaille.
|
|
|
|
|
|
Factor out irregular men into Makefile.summ.
|
|
|
|
|
|
|
|
|
|
|
|
* man/Makefile.am (EXTRA_DIST): Add Makefile.summ.
|
|
|
|
|
|
|
1998-10-03 17:39:49 +00:00
|
|
|
|
* man/Makefile.summ: New file.
|
|
|
|
|
|
* man/Makefile.maint: Include it.
|
|
|
|
|
|
|
1998-10-04 13:50:52 +00:00
|
|
|
|
* tests/Fetish.pm: Make `DEBUG' be a little more verbose.
|
1998-10-03 16:49:01 +00:00
|
|
|
|
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add i-1.
|
|
|
|
|
|
* tests/mv/i-1: New test.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-02 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls-2/Makefile.am (EXTRA_DIST): Remove run-test.
|
|
|
|
|
|
* tests/ls-2/run-test: Remove file.
|
|
|
|
|
|
* tests/ls-2/quoting: Include /bin/sh driver framework.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/dircolors/simple: Remove file.
|
|
|
|
|
|
* tests/dircolors/run-test: Embed it here instead.
|
|
|
|
|
|
* tests/dircolors/simple: Rename from run-test.
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/Makefile.am (EXTRA_DIST): Remove README.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1998-09-29 03:13:25 +00:00
|
|
|
|
1998-09-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-09-29 03:41:16 +00:00
|
|
|
|
* Version 4.0-pre1.
|
|
|
|
|
|
|
1998-09-29 03:54:30 +00:00
|
|
|
|
* Use automake-1.3b. See notes in README.
|
|
|
|
|
|
|
1998-09-29 03:13:25 +00:00
|
|
|
|
* src/copy.c (copy_internal): Do honor `n' reply in move-mode.
|
|
|
|
|
|
Otherwise, `touch a b; echo n|mv -i a b' would remove b.
|
|
|
|
|
|
From Bernd Leibing.
|
|
|
|
|
|
|
1998-09-27 17:30:06 +00:00
|
|
|
|
1998-09-27 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-09-27 17:45:22 +00:00
|
|
|
|
* Version 3.16z.
|
|
|
|
|
|
|
1998-09-27 18:44:34 +00:00
|
|
|
|
* Makefile.maint (alpha): New target.
|
1998-09-27 19:37:51 +00:00
|
|
|
|
(my-distcheck): Tweak.
|
1998-09-27 18:44:34 +00:00
|
|
|
|
|
1998-09-27 17:45:00 +00:00
|
|
|
|
* lib/backupfile.h: Protect against multiple inclusion.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
1998-09-27 17:30:06 +00:00
|
|
|
|
* configure.in: Remove use of AC_FUNC_FNMATCH and associated code.
|
|
|
|
|
|
Now, it is invoked through jm_MACROS.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/strftime.c (my_strftime): Update from FSF.
|
|
|
|
|
|
|
1998-09-27 02:57:44 +00:00
|
|
|
|
1998-09-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Don't preserve hard-linked directories
|
|
|
|
|
|
to avoid damaging the destination filesystem when copying from a
|
|
|
|
|
|
Netapp snapshot directory. With code from Kjetil Torgrim Hollstein
|
|
|
|
|
|
and Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-24 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* man/Makefile.maint ($(man_MANS)): Correct typo: s/-tmp/-t/.
|
|
|
|
|
|
From Akim Demaille.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-21 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* man/Makefile.maint ($(man_MANS)): Remove `echo'.
|
|
|
|
|
|
|
1998-09-20 13:44:20 +00:00
|
|
|
|
1998-09-20 Jim Meyering <meyering@ascend.com>
|
1998-09-19 13:11:58 +00:00
|
|
|
|
|
1998-09-19 18:43:12 +00:00
|
|
|
|
* Version 3.16y.
|
|
|
|
|
|
|
1998-09-20 13:44:20 +00:00
|
|
|
|
* src/install.c (install_file_to_path) [-D]: Create any leading
|
|
|
|
|
|
directories with permissions of 0755.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-19 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (install_file_to_path): Copy the file after creating
|
|
|
|
|
|
any leading directories.
|
|
|
|
|
|
(main) [case 'v']: Set `x.verbose' to 1, not 0.
|
|
|
|
|
|
Reported by Marty Leisner.
|
|
|
|
|
|
|
1998-09-19 20:40:33 +00:00
|
|
|
|
* man/Makefile.am (transform): Define.
|
|
|
|
|
|
(man_MANS): Include ginstall.1, not install.1, to match the name
|
|
|
|
|
|
of the executable in ../src.
|
|
|
|
|
|
* man/ginstall.x: New file.
|
|
|
|
|
|
* man/install.x: Remove file.
|
|
|
|
|
|
* man/Makefile.maint (ginstall-summary): Renamed from install-summary.
|
|
|
|
|
|
|
1998-09-19 18:43:12 +00:00
|
|
|
|
* man/Makefile.am (EXTRA_DIST): Add Makefile.maint and GNUmakefile.
|
|
|
|
|
|
Reported by Akim Demaille.
|
|
|
|
|
|
|
1998-09-19 13:11:58 +00:00
|
|
|
|
* lib/modechange.c: Fix post-protoization typo.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/posixtm.h (PARAMS): Define and use.
|
|
|
|
|
|
From Kaveh Ghazi.
|
|
|
|
|
|
|
1998-09-13 00:06:18 +00:00
|
|
|
|
1998-09-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 3.16x.
|
|
|
|
|
|
|
|
|
|
|
|
* src/remove.c (remove_cwd_entries): Declare to be static.
|
|
|
|
|
|
|
|
|
|
|
|
Automatically generate man pages from combination of --help
|
|
|
|
|
|
output and the contents of new, man/*.x files.
|
|
|
|
|
|
* man/Makefile.am (HELP2MAN): Define.
|
|
|
|
|
|
(man_aux): Define.
|
|
|
|
|
|
(EXTRA_DIST): Add $(HELP2MAN) and $(man_aux).
|
|
|
|
|
|
(MAINTAINERCLEANFILES): Add $(man_MANS).
|
|
|
|
|
|
* man/*.x: New files.
|
|
|
|
|
|
* man/GNUmakefile: New file.
|
|
|
|
|
|
* man/Makefile.maint: New file.
|
|
|
|
|
|
* man/help2man: New file.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/modechange.c: Protoize.
|
|
|
|
|
|
|
1998-09-07 14:11:00 +00:00
|
|
|
|
1998-09-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-09-07 15:13:59 +00:00
|
|
|
|
* Version 3.16w.
|
|
|
|
|
|
|
1998-09-07 18:08:31 +00:00
|
|
|
|
* src/df.c (show_dev) [!posix_format]: When using --print-type,
|
|
|
|
|
|
let the device path and the file system type share a single (wider)
|
|
|
|
|
|
field if their combined lengths allow it. From Andries Brouwer.
|
|
|
|
|
|
|
1998-09-07 15:13:59 +00:00
|
|
|
|
* tests/touch/empty-file: Upon failure, suggest how to rerun the test
|
|
|
|
|
|
with longer delay, in case NFS clock skew was the cause of the failure.
|
|
|
|
|
|
Reported by Kaveh Ghazi.
|
|
|
|
|
|
|
1998-09-07 14:11:00 +00:00
|
|
|
|
* tests/ls-2/quoting: Add tests.
|
|
|
|
|
|
* tests/Fetish.pm (run_tests): Add simple PRE/POST hooks.
|
|
|
|
|
|
(_create_file): Don't include $$ in temp file name.
|
|
|
|
|
|
(run_tests): Use shorter suffixes for temp file names.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-06 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c: Include posixtm.h.
|
|
|
|
|
|
(usage): Correct the description of the format of the
|
|
|
|
|
|
date string argument to -t option.
|
|
|
|
|
|
(main): Update to use rewritten posixtime function.
|
|
|
|
|
|
Reported by Andries Brouwer.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Change posixtm.y to posixtm.c.
|
|
|
|
|
|
(noinst_HEADERS): Add posixtm.h.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/posixtm.h: New file.
|
|
|
|
|
|
* lib/posixtm.c: New file. Rewritten based on posixtm.y.
|
|
|
|
|
|
* lib/posixtm.y: Remove file.
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-05 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (print_dir_name): Put back.
|
|
|
|
|
|
(print_dir): Also print directory name header if print_dir_name is
|
|
|
|
|
|
true.
|
|
|
|
|
|
|
1998-08-29 18:00:11 +00:00
|
|
|
|
1998-08-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-08-30 03:13:01 +00:00
|
|
|
|
* Version 3.16v.
|
|
|
|
|
|
|
|
|
|
|
|
* src/du.c (long_options): Use corresponding short-option character
|
|
|
|
|
|
in place of `1', and `NULL' in place of pointer in initialization.
|
|
|
|
|
|
* src/cp.c (long_opts): Likewise.
|
|
|
|
|
|
* src/ln.c (long_options): Likewise.
|
|
|
|
|
|
* src/mkdir.c (longopts): Likewise.
|
|
|
|
|
|
* src/rmdir.c (longopts): Likewise.
|
|
|
|
|
|
* src/chown.c: Replace 12 and 13 with CHAR_MAX + 1 and CHAR_MAX + 2
|
|
|
|
|
|
respectively.
|
|
|
|
|
|
* src/chmod.c (long_options): Replace 12 with CHAR_MAX + 1.
|
|
|
|
|
|
* src/chgrp.c (long_options): Replace 12 with CHAR_MAX + 1.
|
|
|
|
|
|
|
1998-08-29 18:06:27 +00:00
|
|
|
|
* tests/Fetish.pm: New file -- moved from ls-2/.
|
|
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/dircolors/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add dircolors.
|
|
|
|
|
|
(EXTRA_DIST): Add Fetish.pm.
|
|
|
|
|
|
* tests/dircolors: New directory
|
|
|
|
|
|
|
1998-08-29 18:00:11 +00:00
|
|
|
|
* src/ls.c (print_dir_name): Remove global variable.
|
|
|
|
|
|
(print_dir): When trace_dirs is set, always print the directory
|
|
|
|
|
|
name header.
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.c (dc_parse_stream): Don't segfault when a line
|
|
|
|
|
|
contains only one token. Reported by Olav Morkrid.
|
|
|
|
|
|
|
1998-08-30 03:13:01 +00:00
|
|
|
|
1998-08-24 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h (CHAR_MIN, CHAR_MAX):
|
|
|
|
|
|
Renamed from SCHAR_MIN, SCHAR_MAX, since these
|
|
|
|
|
|
macros apply to char, not signed char.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c, src/du.c, src/touch.c (long_options, main):
|
|
|
|
|
|
Don't assume ASCII.
|
|
|
|
|
|
|
1998-08-30 03:21:13 +00:00
|
|
|
|
1998-08-18 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Port nanosecond-resolution times to UnixWare 2.1.2 and
|
|
|
|
|
|
pedantic Solaris 2.6.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_STRUCT_ST_MTIM_NSEC): Renamed from AC_STRUCT_ST_MTIM.
|
|
|
|
|
|
* acconfig.h (ST_MTIM_NSEC): New #undef.
|
|
|
|
|
|
* src/system.h: (ST_TIME_CMP_NS, ATIME_CMP, CTIME_CMP, MTIME_CMP):
|
|
|
|
|
|
Use new ST_MTIM_NSEC macro.
|
|
|
|
|
|
|
1998-08-16 15:26:45 +00:00
|
|
|
|
1998-08-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.h (PARAMS): Define and use.
|
|
|
|
|
|
From Kaveh Ghazi.
|
|
|
|
|
|
|
1998-08-16 04:22:49 +00:00
|
|
|
|
1998-08-15 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-08-16 04:23:22 +00:00
|
|
|
|
* Version 3.16u.
|
|
|
|
|
|
|
1998-08-16 04:24:38 +00:00
|
|
|
|
* Makefile.maint (announcement): New target.
|
|
|
|
|
|
|
1998-08-16 04:22:49 +00:00
|
|
|
|
* tests/mv/into-self: Update to reflect changed behavior of mv.
|
|
|
|
|
|
* src/mv.c (do_move): Fail upon attempt to move a directory into itself.
|
|
|
|
|
|
With prodding from Fran<61>ois Pinard :-)
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls-2/Fetish.pm: New file
|
|
|
|
|
|
* tests/ls-2/run-test: New file
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal) [one-file-system]: Do copy mount point
|
|
|
|
|
|
directories (but none of their entries). This makes `cp --archive
|
|
|
|
|
|
--one-file-system' use the same policy `tar --one-file-system' does.
|
|
|
|
|
|
From Marty Leisner.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (qmark_funny_chars): Add comment from Paul eggert.
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-14 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/setup: Work around another bug in Ultrix4.3a's /bin/sh.
|
|
|
|
|
|
Reported by Christian von Roques.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/ls-2/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add ls-2.
|
|
|
|
|
|
* tests/ls-2: New directory
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-14 Christian von Roques <roques@pond.sub.org>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list) [MOUNTED_GETMNT]: Don't
|
|
|
|
|
|
infloop on getmnt(2) returning 0.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/cp/backup-is-src: Avoid bug in Ultrix4.3a /bin/sh,
|
|
|
|
|
|
not initializing output redirection of : command.
|
|
|
|
|
|
* tests/mv/backup-is-src: Likewise.
|
|
|
|
|
|
* tests/rm/i-1: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-12 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* po/Makefile.in.in: Provide automake-style DESTDIR support.
|
|
|
|
|
|
From Johan Danielsson.
|
|
|
|
|
|
(DISTFILES): Remove ChangeLog.
|
|
|
|
|
|
po/ChangeLog: Remove empty file.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_STRUCT_ST_DM_MODE): Use it.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c: Include filemode.h.
|
|
|
|
|
|
* src/chmod.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/filemode.c (ftypelet): Add comments for Cray DMF support.
|
|
|
|
|
|
From Johan Danielsson.
|
|
|
|
|
|
Protoize. Tsort function definitions and remove prototypes of
|
|
|
|
|
|
static functions.
|
|
|
|
|
|
(mode_string): Remove prototype.
|
|
|
|
|
|
* lib/filemode.h (mode_string): New file.
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add filemode.h.
|
|
|
|
|
|
|
1998-08-09 20:08:27 +00:00
|
|
|
|
1998-08-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 3.16t.
|
|
|
|
|
|
|
1998-08-02 16:33:53 +00:00
|
|
|
|
1998-07-31 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Add support for filesystems whose timestamps have better resolution
|
|
|
|
|
|
than 1 second (e.g. Solaris 2.6, recent Linux kernels).
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_STRUCT_ST_MTIM): Add.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Compare time stamps with
|
|
|
|
|
|
subsecond resolution if available.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (compare_ctime, rev_cmp_ctime, compare_mtime,
|
|
|
|
|
|
rev_cmp_mtime, compare_atime, rev_cmp_atime): Compare time
|
|
|
|
|
|
stamps with subsecond resolution if available.
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h: (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP,
|
|
|
|
|
|
CTIME_CMP, MTIME_CMP): New macros.
|
|
|
|
|
|
|
1998-08-02 04:16:01 +00:00
|
|
|
|
1998-08-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add slovak (sk) and norwegian (no).
|
|
|
|
|
|
|
1998-07-29 04:01:45 +00:00
|
|
|
|
1998-07-28 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list): Remove all_fs
|
|
|
|
|
|
argument, but put the necessary information into the result so
|
|
|
|
|
|
that the caller can ignore filesystems that he's not
|
|
|
|
|
|
interested in.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.h (struct mount_entry):
|
|
|
|
|
|
New members me_dummy, me_remote.
|
|
|
|
|
|
(read_filesystem_list): Remove all_fs argument.
|
|
|
|
|
|
(REMOTE_FS_TYPE): Remove.
|
|
|
|
|
|
(ME_DUMMY, ME_REMOTE): New macros.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c: Remove duplicate include of <stdio.h>.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (show_all_fs):
|
|
|
|
|
|
Revert to boolean value; the old negative value is
|
|
|
|
|
|
now in show_local_fs.
|
|
|
|
|
|
(show_local_fs): New variable.
|
|
|
|
|
|
(show_dev): New args me_dummy and me_class. Use show_local_fs
|
|
|
|
|
|
and boolean show_all_fs in combination with these new args
|
|
|
|
|
|
to decide whether to show a device.
|
|
|
|
|
|
(show_disk): Pass flags to show_dev.
|
|
|
|
|
|
(show_point): Use a non-dummy mount entry if possible.
|
|
|
|
|
|
(show_all_entries): Pass flags to show_dev.
|
|
|
|
|
|
(main): --local sets show_local_fs now. Ask for file system types if
|
|
|
|
|
|
show_local_fs is nonzero, since ME_REMOTE might need them.
|
|
|
|
|
|
|
1998-07-27 13:38:42 +00:00
|
|
|
|
1998-07-27 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/install/Makefile.am (TESTS_ENVIRONMENT): Set LS, MKDIR, and RM.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/install/basic-1: Add a test for this.
|
|
|
|
|
|
* src/install.c: Make copy create each destination file initially
|
|
|
|
|
|
with mode 0600 so strip will work, then apply specified mode.
|
|
|
|
|
|
Arne Henrik Juul reported that `./ginstall -s -c -m 555 dd /tmp' failed.
|
|
|
|
|
|
|
1998-07-25 15:28:24 +00:00
|
|
|
|
1998-07-25 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-07-27 13:38:42 +00:00
|
|
|
|
* src/mv.c (chown): Remove unused definition.
|
|
|
|
|
|
Reported by Kaveh Ghazi.
|
|
|
|
|
|
|
1998-07-26 00:29:45 +00:00
|
|
|
|
* src/rmdir.c (main): rmdir fails with EEXIST on some systems.
|
|
|
|
|
|
Handle that, so --ignore-fail-on-non-empty works.
|
|
|
|
|
|
(EEXIST): Define to zero if not defined.
|
|
|
|
|
|
(ENOTEMPTY): Likewise.
|
|
|
|
|
|
|
1998-07-25 21:50:53 +00:00
|
|
|
|
* tests/cp/same-file: Remove `diff' I'd put in for debugging.
|
|
|
|
|
|
Exit with the status from cmp.
|
|
|
|
|
|
|
1998-07-25 16:45:45 +00:00
|
|
|
|
* Version 3.16s.
|
|
|
|
|
|
|
1998-07-25 17:52:54 +00:00
|
|
|
|
* tests/cp/same-file: Skip three more unportable tests.
|
|
|
|
|
|
These failed on SunOS4.1.4.
|
|
|
|
|
|
|
1998-07-25 15:32:12 +00:00
|
|
|
|
* src/copy.c (SAME_INODE): Remove definition.
|
|
|
|
|
|
* src/sys2.h (SAME_INODE): Define it here instead.
|
|
|
|
|
|
|
1998-07-25 15:28:24 +00:00
|
|
|
|
* src/remove.c (same_file): New function.
|
|
|
|
|
|
(remove_dir): Use it to give a better diagnostic when rmdir fails
|
|
|
|
|
|
because it can't remove the current directory.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (long_options): Changes table entries not to use this form:
|
|
|
|
|
|
{"all", no_argument, &show_all_fs, 1},
|
|
|
|
|
|
but rather this form:
|
|
|
|
|
|
{"all", no_argument, NULL, 'a'},
|
|
|
|
|
|
Using the latter, all the option handling in one place: the getopt loop.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list) [MOUNTED_GETMNTINFO]:
|
|
|
|
|
|
Use fsp_to_string.
|
|
|
|
|
|
(fsp_to_string): Don't xmalloc return value (yet).
|
|
|
|
|
|
(xatoi): Ansideclify.
|
|
|
|
|
|
(fstype_to_string): Ansideclify.
|
|
|
|
|
|
* lib/mountlist.h: Define and use PARAMS macro.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/utime.c: New file.
|
|
|
|
|
|
* src/touch.c (utime_now): Moved into m4/utimes.m4.
|
1998-07-25 16:45:45 +00:00
|
|
|
|
(touch) [!HAVE_UTIME_NULL]: Remove #ifdef and the use of utime_now
|
|
|
|
|
|
in the if-block.
|
1998-07-25 15:28:24 +00:00
|
|
|
|
|
|
|
|
|
|
* configure.in (jm_FUNC_UTIME): Use this, not AC_FUNC_UTIME.
|
|
|
|
|
|
|
1998-07-22 16:57:26 +00:00
|
|
|
|
1998-07-22 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
1998-07-22 18:32:36 +00:00
|
|
|
|
* lib/human.c (human_readable): amt -> damt, to fix typo when
|
|
|
|
|
|
computing which power to use after overflow occurs during
|
|
|
|
|
|
multiplication.
|
|
|
|
|
|
|
1998-07-22 16:57:26 +00:00
|
|
|
|
* lib/xstrtol.c: Include <stdio.h> if NDEBUG is not defined;
|
|
|
|
|
|
needed on SunOS 4.
|
|
|
|
|
|
|
1998-07-25 15:28:24 +00:00
|
|
|
|
1998-07-21 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Add df -l or --local option.
|
|
|
|
|
|
* doc/fileutils.texi: Document it.
|
|
|
|
|
|
* lib/mountlist.h (REMOTE_FS_TYPE): New macro.
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list):
|
|
|
|
|
|
If all_fs is negative, omit non-local filesytems.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (show_dev): Omit local devices if show_all_fs is negative.
|
|
|
|
|
|
(show_all_fs): If negative, omit non-local filesystems.
|
|
|
|
|
|
All uses of (all_fs != 0) changed to (all_fs > 0).
|
|
|
|
|
|
(long_options, usage, main): Add -l or --local option.
|
|
|
|
|
|
(main): When asking for df of an explicit file name, get all
|
|
|
|
|
|
the mount points, so that we're more likely to find it when
|
|
|
|
|
|
we look it up.
|
|
|
|
|
|
|
1998-07-20 03:57:59 +00:00
|
|
|
|
1998-07-18 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Add another exclusion from the
|
|
|
|
|
|
sameness test: when --force has been specified, the destination
|
|
|
|
|
|
is unlinked before any copy.
|
|
|
|
|
|
(copy_internal): Add yet another: when both src and dest are symlinks.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/touch: New subdir.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add touch.
|
|
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/touch/Makefile.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/into-self-2: New test.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add into-self-2.
|
|
|
|
|
|
|
|
|
|
|
|
1998-07-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list): Fix more memory leaks on
|
|
|
|
|
|
failure.
|
|
|
|
|
|
|
1998-07-16 23:14:30 +00:00
|
|
|
|
1998-07-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-07-20 03:57:59 +00:00
|
|
|
|
Work around failure of chown calls on m68k-motorola-sysv systems.
|
|
|
|
|
|
* src/chown.c: Include lchown.h.
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add lchown.h.
|
|
|
|
|
|
* lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
|
|
|
|
|
|
* lib/lchown.c: Include lchown.h.
|
|
|
|
|
|
Reported by and with suggestions from Manfred Hollstein.
|
1998-07-16 23:14:30 +00:00
|
|
|
|
|
1998-07-16 22:58:12 +00:00
|
|
|
|
1998-07-12 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (print_header): Print "1k-blocks", not "1.0k-blocks".
|
|
|
|
|
|
|
1998-07-08 01:08:37 +00:00
|
|
|
|
1998-07-07 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/sys2.h [HAVE_FCLOSE_UNLOCKED]: Remove unnecessary block.
|
|
|
|
|
|
Suggestion from Ulrich Drepper.
|
|
|
|
|
|
|
|
|
|
|
|
1998-07-04 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/safe-read.c (safe_read): Change type of pointer parameter to
|
|
|
|
|
|
`void' to avoid Irix4 cc errors. Reported by Kaveh Ghazi.
|
|
|
|
|
|
* lib/safe-read.h: Update prototype.
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.c (parse_line): Add casts to avoid errors from
|
|
|
|
|
|
Irix4's `cc' C compiler. From Kaveh Ghazi.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c: Include stdio.h. Required on some systems when
|
|
|
|
|
|
using assert. From Kaveh Ghazi.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/mv/backup-is-src: Use cmp, not diff.
|
|
|
|
|
|
Reported by Kaveh Ghazi.
|
|
|
|
|
|
|
1998-07-04 00:53:38 +00:00
|
|
|
|
1998-07-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-07-04 03:43:50 +00:00
|
|
|
|
* Version 3.16r.
|
1998-07-04 00:53:38 +00:00
|
|
|
|
|
1998-07-04 04:10:28 +00:00
|
|
|
|
* src/remove.c (remove_dir): Use fprintf (not error) to avoid
|
|
|
|
|
|
newline in prompt.
|
|
|
|
|
|
|
1998-07-04 00:48:15 +00:00
|
|
|
|
1998-06-30 Paul Eggert <eggert@shade.twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c: (read_filesystem_list):
|
|
|
|
|
|
Don't leak memory on failure.
|
|
|
|
|
|
Don't create a dummy struct mount_entry entry;
|
|
|
|
|
|
use the address-of-the-tail-address method instead.
|
|
|
|
|
|
Preserve errno if possible on failure, setting it to 0 if inapplicable.
|
|
|
|
|
|
Close file descriptor leak if the F_SETLKW failed.
|
|
|
|
|
|
Report an error if SVR4 lock file cannot be opened for some reason
|
|
|
|
|
|
other than a nonexistent lock file.
|
|
|
|
|
|
|
1998-07-04 00:23:40 +00:00
|
|
|
|
1998-07-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (AM_WITH_REGEX): Remove. Now the replacement
|
|
|
|
|
|
macro, jm_WITH_REGEX, is bundled with the rest in jm_MACROS.
|
|
|
|
|
|
* acconfig.h (WITH_REGEX): Remove undef.
|
1998-07-04 01:33:27 +00:00
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add regex.h.
|
1998-07-04 01:46:33 +00:00
|
|
|
|
* lib/rpmatch.c: Remove #ifdef around <regex.h> inclusion.
|
1998-07-04 00:23:40 +00:00
|
|
|
|
* lib/rx.c: Remove file.
|
|
|
|
|
|
* lib/rx.h: Remove file.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (df_readable): Rename local so as not to shadow global.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (SAME_INODE): New macro.
|
|
|
|
|
|
Use it to replace open-coded equivalents.
|
|
|
|
|
|
(copy_internal): Rename variable and reverse sense of tests
|
|
|
|
|
|
to make the code a little clearer.
|
|
|
|
|
|
|
|
|
|
|
|
1998-07-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Try harder identifying a relative
|
|
|
|
|
|
symbolic link in the current directory.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Don't skip test for same file if
|
|
|
|
|
|
creating a hardlink from symlink over a non-symlink while making
|
|
|
|
|
|
backups.
|
|
|
|
|
|
* tests/cp/same-file: Skip tests that depend on link(2) not
|
|
|
|
|
|
following symlinks.
|
|
|
|
|
|
|
|
|
|
|
|
1998-07-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Don't call chown on a symlink.
|
|
|
|
|
|
|
1998-07-01 12:46:39 +00:00
|
|
|
|
1998-07-01 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c: Don't define NDEBUG here, now that it's done via
|
|
|
|
|
|
configure's --disable-assert option.
|
|
|
|
|
|
|
1998-06-30 14:32:33 +00:00
|
|
|
|
1998-06-29 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mountlist.c (read_filesystem_list):
|
|
|
|
|
|
Plug file descriptor leak on failure.
|
|
|
|
|
|
Report failure if lock file can't be opened for some reason
|
|
|
|
|
|
other than nonexistence.
|
|
|
|
|
|
|
1998-06-29 15:38:09 +00:00
|
|
|
|
1998-06-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 3.16q.
|
|
|
|
|
|
|
1998-06-30 03:57:55 +00:00
|
|
|
|
* lib/mountlist.c (read_filesystem_list) [MOUNTED_GETMNTENT2]:
|
|
|
|
|
|
Always close stream and file descriptor before returning.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (main): Move the test of the result of the
|
|
|
|
|
|
read_filesystem_list call up out of if-block -- code in the
|
|
|
|
|
|
else-block depends on it too.
|
|
|
|
|
|
|
|
|
|
|
|
1998-06-29 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
* lib/mountlist.c: (read_filesystem_list): If SVR4, lock
|
|
|
|
|
|
/etc/.mnttab.lock if available, to avoid race conditions
|
|
|
|
|
|
(e.g. with the automounter on Solaris 2.6).
|
1998-06-30 03:57:55 +00:00
|
|
|
|
|
1999-01-16 17:01:20 +00:00
|
|
|
|
Include <errno.h>, <fcntl.h>, <unistd.h>.
|
1998-06-30 03:57:55 +00:00
|
|
|
|
|
|
|
|
|
|
1998-06-29 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-06-29 17:03:13 +00:00
|
|
|
|
* lib/mountlist.c (fstype_to_string): Guard with
|
|
|
|
|
|
#if ! HAVE_F_FSTYPENAME_IN_STATFS.
|
|
|
|
|
|
|
1998-06-29 15:38:09 +00:00
|
|
|
|
1998-06-28 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Add support for new --block-size option and
|
|
|
|
|
|
BLOCK_SIZE. DF_BLOCK_SIZE, etc. variables to `df', `du', and `ls'.
|
|
|
|
|
|
Adjust df output slightly to accommodate larger filesystems.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
|
|
|
|
|
|
into one, for convenience. All callers changed.
|
|
|
|
|
|
(human_block_size): New function.
|
|
|
|
|
|
* lib/human.c: Include <config.h> only if HAVE_CONFIG_H.
|
|
|
|
|
|
Include <stdlib.h> if HAVE_STDLIB_H;
|
|
|
|
|
|
declare getenv unless HAVE_DECL_GETENV.
|
|
|
|
|
|
(_): New macro.
|
|
|
|
|
|
Include <argmatch.h>, <error.h>, <xstrtoul.h>.
|
|
|
|
|
|
(DEFAULT_BLOCK_SIZE): New macro.
|
|
|
|
|
|
(block_size_args, block_size_types): New constants.
|
|
|
|
|
|
(humblock): New function.
|
|
|
|
|
|
* lib/xstrtol.h (__ZLONG_MAX): Remove.
|
|
|
|
|
|
* lib/xstrtol.c (bkm_scale): Don't assume that you can convert
|
|
|
|
|
|
unsigned long to double without losing information.
|
|
|
|
|
|
(bkm_scale_by_power): New function.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c (__xstrtol), src/dd.c (parse_integer):
|
|
|
|
|
|
Add support for SI-like suffixes like "GB" and "TD".
|
|
|
|
|
|
* src/dd.c (usage): Describe it.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c, src/du.c, src/ls.c (human_readable_base, output_units):
|
|
|
|
|
|
Remove; replace with new variable output_block_size. All uses changed.
|
|
|
|
|
|
(long_options, usage, main): Add --block-size.
|
|
|
|
|
|
(main, decode_switches): Use new human_block_size function to
|
|
|
|
|
|
initialize output block size consistently with other programs.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (print_header, show_dev): Shrink some columns and expand
|
|
|
|
|
|
others, to squeeze in support for today's larger filesystems.
|
|
|
|
|
|
(print_header): Print output block size using power-of-1024 SI format.
|
|
|
|
|
|
(df_readable): Coalesce last two args into one, for convenience.
|
|
|
|
|
|
All callers changed.
|
|
|
|
|
|
(main): Remove check for portable output format and larger
|
|
|
|
|
|
or human-readable block sizes.
|
|
|
|
|
|
|
|
|
|
|
|
* NEWS, doc/fileutils.texi: Describe above changes.
|
|
|
|
|
|
|
1998-06-29 01:11:00 +00:00
|
|
|
|
1998-06-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-06-29 03:42:55 +00:00
|
|
|
|
* src/ls.c (usage): Make --kilobytes description consistent with
|
|
|
|
|
|
that in du and df. From G<>ran Uddeborg.
|
|
|
|
|
|
|
1998-06-29 01:11:00 +00:00
|
|
|
|
* lib/mountlist.c (fsp_to_string): Clean out some crufty #ifdefs
|
|
|
|
|
|
now that we're using the jm_FSTYPENAME autoconf macro.
|
1998-06-29 17:35:28 +00:00
|
|
|
|
James Tanis reported the old version didn't compile on BSDI3.
|
1998-06-29 01:11:00 +00:00
|
|
|
|
|
|
|
|
|
|
* configure.in: Move big block of list_mounted_fs checks into
|
|
|
|
|
|
new jm_LIST_MOUNTED_FILESYSTEMS macro.
|
|
|
|
|
|
Use new jm_FSTYPENAME macro.
|
|
|
|
|
|
|
1998-06-29 16:16:58 +00:00
|
|
|
|
* src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
|
1998-06-29 01:11:00 +00:00
|
|
|
|
* src/ls.c: Add DIRED_ prefix to the macros: PUTCHAR, FPUTS, and
|
|
|
|
|
|
FPUTS_LITERAL
|
|
|
|
|
|
|
1998-06-27 20:35:26 +00:00
|
|
|
|
1998-06-27 Jim Meyering <meyering@ascend.com>
|
1998-06-21 18:53:07 +00:00
|
|
|
|
|
1998-06-29 01:11:00 +00:00
|
|
|
|
* src/copy.c (copy_reg): Detect identical source and dest here.
|
|
|
|
|
|
(copy_internal): Make the test symmetric.
|
|
|
|
|
|
|
1998-06-27 20:35:26 +00:00
|
|
|
|
* tests/cp/same-file: New file.
|
|
|
|
|
|
* tests/cp/Makefile.am (TESTS): Add it.
|
|
|
|
|
|
|
|
|
|
|
|
1998-06-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-06-27 13:45:23 +00:00
|
|
|
|
* src/remove.c (remove_file): Remove `non-directory' part of
|
|
|
|
|
|
`removing non-directory FILE' verbose message.
|
|
|
|
|
|
|
|
|
|
|
|
1998-06-23 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (show_dev): Increase field width for blocks, used,
|
|
|
|
|
|
and available columns from 7 to 8.
|
|
|
|
|
|
|
|
|
|
|
|
1998-06-21 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-06-21 18:53:07 +00:00
|
|
|
|
* aclocal.m4: Regenerate with fixed gettext.m4 installed.
|
|
|
|
|
|
See README-alpha for details.
|
|
|
|
|
|
|
1998-06-05 13:00:17 +00:00
|
|
|
|
1998-06-02 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/automake-wrap: Quote `&' in sed replacement text.
|
|
|
|
|
|
|
1998-06-01 03:29:54 +00:00
|
|
|
|
1998-05-31 Jim Meyering <meyering@ascend.com>
|
1998-05-30 20:49:07 +00:00
|
|
|
|
|
|
|
|
|
|
* Version 3.16p.
|
|
|
|
|
|
|
1998-06-01 03:29:54 +00:00
|
|
|
|
* src/install.c (main): Fix argv-handling bug in my 1998-05-09 change.
|
|
|
|
|
|
Reported by Don Parsons.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-30 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-05-30 21:34:32 +00:00
|
|
|
|
* tests/ls/time-1: Clean up ctime test. Note that it fails also
|
|
|
|
|
|
on Solaris5.5.1 tmpfs file systems.
|
|
|
|
|
|
|
1998-05-30 20:49:07 +00:00
|
|
|
|
Solve the `rm -f rm' problem more cleanly.
|
|
|
|
|
|
* src/.rm-warning: Remove file.
|
|
|
|
|
|
* src/automake-wrap: New file.
|
|
|
|
|
|
* src/Makefile.am (AUTOMAKE): Define to use automake-wrap.
|
|
|
|
|
|
(Makefile.in): Depend on automake-wrap.
|
|
|
|
|
|
(EXTRA_DIST): Add automake-wrap.
|
|
|
|
|
|
(DISTCLEANFILES): Remove definition.
|
|
|
|
|
|
(rm_DEPENDENCIES): Likewise.
|
|
|
|
|
|
(.rm-warn-stamp): Remove rule.
|
|
|
|
|
|
|
1998-05-27 12:41:08 +00:00
|
|
|
|
1998-05-27 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls/Makefile.am (TESTS): s/cr-1/rt-1/
|
1998-05-27 12:54:34 +00:00
|
|
|
|
* tests/ls/rt-1: New file, renamed from cr-1.
|
1998-05-27 12:41:08 +00:00
|
|
|
|
|
1998-05-27 12:54:34 +00:00
|
|
|
|
1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (.rm-warn-stamp): Cope with $(srcdir) != ".".
|
1998-05-27 12:41:08 +00:00
|
|
|
|
|
|
|
|
|
|
* tests/ls/cr-1: Don't use the ctime for testing, it is impossible
|
|
|
|
|
|
to set it reliably.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-25 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (_GNU_SOURCE): AC_DEFINE it here.
|
|
|
|
|
|
* acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
|
|
|
|
|
|
[!_GNU_SOURCE]: Add #undef instead.
|
|
|
|
|
|
|
1998-05-24 14:02:44 +00:00
|
|
|
|
1998-05-24 Jim Meyering <meyering@ascend.com>
|
1998-05-16 05:18:07 +00:00
|
|
|
|
|
|
|
|
|
|
* Version 3.16o.
|
1998-05-16 04:40:58 +00:00
|
|
|
|
|
1998-05-24 17:45:14 +00:00
|
|
|
|
* src/ansi2knr.c: Use new version from automake-1.3.
|
|
|
|
|
|
|
1998-05-24 14:02:44 +00:00
|
|
|
|
* src/chown.c: Accept new option, --dereference.
|
|
|
|
|
|
--no-dereference is now the default.
|
|
|
|
|
|
(enum Change_status) [CH_NOT_APPLIED]: New member.
|
|
|
|
|
|
(change_symlinks): Enable this by default, now.
|
|
|
|
|
|
(describe_change): Handle new case.
|
|
|
|
|
|
(change_file_owner): Add new parameter: cmdline_arg. Update callers.
|
|
|
|
|
|
Reorganize to reflect changed semantics.
|
|
|
|
|
|
(LCHOWN): Remove definitions.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/lchown.c: New file.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-21 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add russian (ru).
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-16 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-05-16 04:40:58 +00:00
|
|
|
|
* src/remove.c (hash_compare_strings): Return true or false, not 1/0.
|
|
|
|
|
|
(remove_cwd_entries): Use RM_OK, not equivalent literal `1'.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.c (is_prime): Ansideclify.
|
|
|
|
|
|
(next_prime): Ansideclify. Add an assertion.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
|
|
|
|
|
|
lines from the m4/*.m4 macros, so the hack of including some
|
|
|
|
|
|
custom-replaced C source file names here is no longer needed.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (jm_MACROS): New wrapper macro.
|
|
|
|
|
|
Remove uses of most jm_* macros.
|
|
|
|
|
|
|
|
|
|
|
|
* acconfig.h (HAVE_STRUCT_UTIMBUF): Remove #undef. Now it's handled
|
|
|
|
|
|
as part of utimbuf.m4.
|
|
|
|
|
|
(memcmp): Add #undef.
|
|
|
|
|
|
|
1998-05-13 03:48:05 +00:00
|
|
|
|
1998-05-12 Jim Meyering <meyering@ascend.com>
|
1998-05-03 23:21:39 +00:00
|
|
|
|
|
1998-05-13 04:15:47 +00:00
|
|
|
|
* configure.in: Use my replacement AC_ISC_POSIX rather than
|
|
|
|
|
|
open-coding it.
|
|
|
|
|
|
|
1998-05-13 03:48:05 +00:00
|
|
|
|
* src/copy.c (copy_internal): Plug a small leak.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-10 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-05-11 11:54:48 +00:00
|
|
|
|
* src/mv.c (do_move): Remove lots of code that was duplicated in
|
|
|
|
|
|
copy.c (copy), now that copy() has better support for mv. This fixes
|
|
|
|
|
|
a bug with cross-filesystem `mv -i' whereby you could get two prompts
|
|
|
|
|
|
for the same destination file and eventually remove the destination
|
|
|
|
|
|
file even though one of the responses was negative.
|
|
|
|
|
|
Reported by Dirk Lattermann.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.h: Better support for mv:
|
|
|
|
|
|
[struct cp_options] (move_mode): New member.
|
|
|
|
|
|
* src/copy.c (copy_internal): Use new move_mode member.
|
|
|
|
|
|
Add parameter.
|
|
|
|
|
|
(copy): Add parameter.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/cp/Makefile.am (TESTS): Add backup-is-src.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/userspec.c: Don't declare strdup if it's defined as a macro.
|
|
|
|
|
|
Reported by Lorne Baker.
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (ginstall_SOURCES): Add copy.c and cp-hash.c.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mv.c (cp_option_init): Initialize new members.
|
|
|
|
|
|
* src/cp.c (cp_option_init): Likewise.
|
|
|
|
|
|
(main): Set new preserve_* options.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.h: Support for install:
|
|
|
|
|
|
[struct cp_options] (failed_unlink_is_fatal): New member.
|
|
|
|
|
|
(preserve_owner_and_group): New member.
|
|
|
|
|
|
(preserve_chmod_bits): New member.
|
|
|
|
|
|
(preserve_timestamps): New member.
|
|
|
|
|
|
(preserve): Remove member.
|
|
|
|
|
|
(set_mode): New member.
|
|
|
|
|
|
(mode): New member.
|
|
|
|
|
|
* src/copy.c (new_nondir_mode): New function. Use where appropriate.
|
|
|
|
|
|
Use more-specific preserve_* members in place of removed `preserve'.
|
|
|
|
|
|
(copy_internal): Honor failed_unlink_is_fatal.
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (main): Rewrite argv-handling to be clearer.
|
|
|
|
|
|
(copy_file): Rewrite to use copy.c (copy).
|
|
|
|
|
|
(change_attributes): Get rid of now-(with chown wrapper)-unnecessary
|
|
|
|
|
|
`no_need_to_chown' parameter. Fix caller.
|
|
|
|
|
|
(install_file_in_file): Remove now-unnecessary `to_created' parameter.
|
|
|
|
|
|
(cp_option_init): New function.
|
|
|
|
|
|
Update several functions to take new parameter specifying copy options.
|
|
|
|
|
|
|
1998-05-09 20:23:38 +00:00
|
|
|
|
* tests/install: New subdir, with one basic test.
|
1998-05-09 20:25:09 +00:00
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add install.
|
|
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/install/Makefile.
|
1998-05-09 20:23:38 +00:00
|
|
|
|
|
1998-05-09 17:42:59 +00:00
|
|
|
|
* src/dd.c: Include safe-read.h.
|
|
|
|
|
|
Don't declare safe_read.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in (jm_TYPE_SSIZE_T): Use it.
|
|
|
|
|
|
* acconfig.h (ssize_t): Add undef.
|
|
|
|
|
|
|
|
|
|
|
|
1998-05-03 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
1998-05-03 23:21:39 +00:00
|
|
|
|
* po/: Update from gettext-0.10.35.
|
|
|
|
|
|
* intl/: Likewise.
|
|
|
|
|
|
* configure.in: Remove use of AC_LINK_FILES.
|
|
|
|
|
|
(AC_OUTPUT): Remove po/Makefile-generating sed command.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-28 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/dircolors.c (parse_line): Use ISSPACE, not isspace.
|
|
|
|
|
|
Use unsigned char * pointers, not potentially signed ones, to avoid
|
|
|
|
|
|
sign extension.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-26 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Use jm_ASSERT.
|
|
|
|
|
|
* acconfig.h: Add NDEBUG.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mv.c: Don't define NDEBUG.
|
|
|
|
|
|
* src/cp.c: Likewise.
|
|
|
|
|
|
|
1998-04-14 15:17:45 +00:00
|
|
|
|
1998-04-14 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/.rm-warning: New file.
|
|
|
|
|
|
* src/Makefile.am (EXTRA_DIST): Add .rm-warning
|
|
|
|
|
|
(DISTCLEANFILES): Add .rm-warn-stamp.
|
|
|
|
|
|
(rm_DEPENDENCIES): Depend on .rm-warn-stamp.
|
|
|
|
|
|
(.rm-warn-stamp): New rule.
|
|
|
|
|
|
(rm_prep): Comment out rule.
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (main): Use STREQ in string equality tests, not strcmp.
|
|
|
|
|
|
* src/dircolors.c (dc_parse_stream): Likewise.
|
|
|
|
|
|
(dc_parse_file): Likewise.
|
|
|
|
|
|
* src/du.c (main): Likewise.
|
|
|
|
|
|
* src/ls.c (decode_switches): Likewise.
|
|
|
|
|
|
* src/remove.c (hash_compare_strings): Likewise.
|
|
|
|
|
|
* src/touch.c (main): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-13 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-11 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.c: Add curly braces around statements in
|
|
|
|
|
|
if/else/while/do/etc. that span more than a line -- even around
|
|
|
|
|
|
multiline simple statements or single-line simple statements
|
|
|
|
|
|
preceded by a comment line.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-09 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Don't use AC_PATH_PROG to check for perl, now that
|
|
|
|
|
|
we use jm_PERL.
|
|
|
|
|
|
|
|
|
|
|
|
1998-04-06 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp-hash.c (cph_hash_insert): Rename from now-conflicting
|
|
|
|
|
|
hash_insert. Also declare to be static.
|
|
|
|
|
|
* src/cp-hash.h (hash_insert): Remove declaration.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/hash.c: Lots of minor spec and name changes, and new comments.
|
|
|
|
|
|
(hash_rehash): Rewrite to be easier on the allocator.
|
|
|
|
|
|
From Fran<61>ois Pinard.
|
|
|
|
|
|
* lib/hash.h: More comments.
|
|
|
|
|
|
* src/remove.c: Change names/usage of hash-related functions to work
|
|
|
|
|
|
with the above.
|
|
|
|
|
|
|
1998-04-05 18:24:45 +00:00
|
|
|
|
1998-04-05 Jim Meyering <meyering@ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/regex.c (WIDE_CHAR_SUPPORT): Define.
|
|
|
|
|
|
This now depends on HAVE_BTOWC so systems that lack btowc (like
|
|
|
|
|
|
solaris-2.5.1) don't lose.
|
|
|
|
|
|
|
1998-04-04 08:02:23 +00:00
|
|
|
|
1998-04-04 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
1998-04-04 08:07:26 +00:00
|
|
|
|
* GNUmakefile: Add conditionals so that running `make' in an
|
|
|
|
|
|
unconfigured source directory will get a reasonable diagnostic.
|
|
|
|
|
|
|
1998-04-04 08:02:23 +00:00
|
|
|
|
* Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
|
|
|
|
|
|
know about the m4/ subdirectory.
|
|
|
|
|
|
* Makefile.maint (aclocal-files): Remove now-unnecessary (with
|
|
|
|
|
|
automake-1.2h and the above change) aclocal-related rules and includes.
|
|
|
|
|
|
|
1998-04-01 06:47:32 +00:00
|
|
|
|
1998-04-01 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls/cr-1: New file.
|
|
|
|
|
|
* tests/ls/Makefile.am (TESTS): Add cr-1.
|
|
|
|
|
|
|
1998-03-31 23:11:50 +00:00
|
|
|
|
1998-03-31 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/system.h (TYPE_MAXIMUM): Cast result to `(t)' so this macro
|
|
|
|
|
|
works with `unsigned char'.
|
1999-01-16 17:01:20 +00:00
|
|
|
|
From Greg Wooledge.
|
1998-03-31 23:11:50 +00:00
|
|
|
|
(SCHAR_MIN, SCHAR_MAX, SHRT_MIN, SHRT_MAX, LONG_MAX, ULONG_MAX): Define.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c: Merge with the version from textutils.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/memcmp.c (rpl_memcmp): Rename from memcmp.
|
|
|
|
|
|
|
1998-04-01 06:47:32 +00:00
|
|
|
|
1998-03-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c (compare_ctime, rev_cmp_ctime, compare_mtime,
|
|
|
|
|
|
rev_cmp_mtime, compare_atime, rev_cmp_atime, compare_size,
|
|
|
|
|
|
rev_cmp_size): Use file name as secondary sort key to get
|
|
|
|
|
|
consistent sorting.
|
|
|
|
|
|
|
1998-03-28 14:57:25 +00:00
|
|
|
|
1998-03-28 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c: Add copyright.
|
|
|
|
|
|
* src/remove.c: Add copyright.
|
|
|
|
|
|
[_AIX]: Add #pragma alloca.
|
|
|
|
|
|
|
|
|
|
|
|
1998-03-27 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.maint ($(ACLOCAL_M4)): Replace old rule with this
|
|
|
|
|
|
dependency and the := assignment of ACLOCAL to make the default
|
|
|
|
|
|
rule use the `-I m4' option.
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
|
|
|
|
|
|
|
1998-03-23 23:12:45 +00:00
|
|
|
|
1998-03-23 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* acconfig.h: Remove HAVE_INTTYPES_H, now that m4/inttypes_h.m4
|
|
|
|
|
|
automatically handles it.
|
|
|
|
|
|
|
1998-03-21 08:54:58 +00:00
|
|
|
|
1998-03-21 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/quotearg.h: Update from patch-2.5.3.
|
|
|
|
|
|
* lib/quotearg.c: Likewise.
|
|
|
|
|
|
* src/ls.c (decode_switches): Pass a null pointer instead of address
|
|
|
|
|
|
of quotearg_quoting_options.
|
|
|
|
|
|
|
1998-03-19 22:27:17 +00:00
|
|
|
|
1998-03-19 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/fsusage.h (struct fs_usage): New member
|
|
|
|
|
|
fsu_bavail_top_bit_set.
|
|
|
|
|
|
* lib/fsusage.c: Include <limits.h>.
|
|
|
|
|
|
(CHAR_BIT, EXTRACT_TOP_BIT, PROPAGATE_TOP_BIT): New macros.
|
|
|
|
|
|
(get_fs_usage): If top bit of system variable corresponding to
|
|
|
|
|
|
fsu_bavail is set, then set fsu_bavail_top_bit_set, and
|
|
|
|
|
|
sign-extend the value when storing it into fsu_bavail.
|
|
|
|
|
|
* src/df.c (show_dev): If fsu_bavail_top_bit_set is nonzero,
|
|
|
|
|
|
assume the original value corresponding to fsu_bavail was negative.
|
|
|
|
|
|
Reported by Arne Juul.
|
|
|
|
|
|
|
1998-03-18 21:53:35 +00:00
|
|
|
|
1998-03-18 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (rm-prep): Add dependency and rule to save users
|
|
|
|
|
|
with `.' too early in their PATH from the `rm: cannot unlink `rm':
|
|
|
|
|
|
Text file busy' error. Suggestion from Philippe De Muyter.
|
|
|
|
|
|
|
1998-03-15 09:11:44 +00:00
|
|
|
|
1998-03-15 Jim Meyering <meyering@eng.ascend.com>
|
1998-02-25 22:40:24 +00:00
|
|
|
|
|
1998-03-14 15:32:55 +00:00
|
|
|
|
* Version 3.16n.
|
|
|
|
|
|
|
1998-03-15 18:05:05 +00:00
|
|
|
|
* lib/chown.c: Use #if, not #ifdef with HAVE_ macros.
|
|
|
|
|
|
* lib/closeout.c: Likewise.
|
|
|
|
|
|
* lib/dirname.c: Likewise.
|
|
|
|
|
|
* lib/euidaccess.c: Likewise.
|
|
|
|
|
|
* lib/fileblocks.c: Likewise.
|
|
|
|
|
|
* lib/filemode.c: Likewise.
|
|
|
|
|
|
* lib/ftruncate.c: Likewise.
|
|
|
|
|
|
* lib/group-member.c: Likewise.
|
|
|
|
|
|
* lib/isdir.c: Likewise.
|
|
|
|
|
|
* lib/long-options.c: Likewise.
|
|
|
|
|
|
* lib/mountlist.c: Likewise.
|
|
|
|
|
|
* lib/path-concat.c: Likewise.
|
|
|
|
|
|
* lib/save-cwd.c: Likewise.
|
|
|
|
|
|
* lib/savedir.c: Likewise.
|
|
|
|
|
|
* lib/strcasecmp.c: Likewise.
|
|
|
|
|
|
* lib/strdup.c: Likewise.
|
|
|
|
|
|
* lib/userspec.c: Likewise.
|
|
|
|
|
|
* lib/yesno.c:: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
* src/chgrp.c: Use #if, not #ifdef with HAVE_ macros.
|
|
|
|
|
|
Use #if !, not #ifndef with HAVE_ macros.
|
|
|
|
|
|
* src/chown.c: Likewise.
|
|
|
|
|
|
* src/copy.c: Likewise.
|
|
|
|
|
|
* src/dd.c: Likewise.
|
|
|
|
|
|
* src/dircolors.c: Likewise.
|
|
|
|
|
|
* src/install.c: Likewise.
|
|
|
|
|
|
* src/ls.c: Likewise.
|
|
|
|
|
|
* src/mv.c: Likewise.
|
|
|
|
|
|
* src/touch.c: Likewise.
|
|
|
|
|
|
|
1998-03-15 09:48:52 +00:00
|
|
|
|
* configure.in: Use jm_PREREQ.
|
1998-03-15 09:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
1998-03-14 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
1998-03-14 16:38:41 +00:00
|
|
|
|
Revert most `getdate.h -> get-date.h' changes of 1998-02-20.
|
|
|
|
|
|
With automake-1.2f, that hack is no longer needed.
|
|
|
|
|
|
|
1998-03-13 23:39:10 +00:00
|
|
|
|
* src/remove.c: Use `virtual memory exhausted' message, not
|
|
|
|
|
|
`Memory exhausted' to be consistent with the majority of other
|
|
|
|
|
|
such messages.
|
|
|
|
|
|
Say `removing all...', not `removing any...'.
|
|
|
|
|
|
* src/rmdir.c (remove_parents): Be consistent with documentation of
|
|
|
|
|
|
--verbose option and with remove.c in saying `removing...' before
|
|
|
|
|
|
the operation is attempted.
|
|
|
|
|
|
(main): Likewise.
|
|
|
|
|
|
Suggestions from Santiago Vila.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_dir): Add new parameter, copy_into_self, and set it.
|
|
|
|
|
|
(copy_internal): Likewise.
|
|
|
|
|
|
(copy): Likewise.
|
|
|
|
|
|
Update all callers.
|
1998-03-13 23:39:48 +00:00
|
|
|
|
* src/copy.h (copy): Update prototype.
|
1998-03-13 23:39:10 +00:00
|
|
|
|
* src/cp.c (do_copy): Add unused arg in calls to copy.
|
|
|
|
|
|
* src/mv.c (do_move): Add ©_into_self arg in call to copy.
|
|
|
|
|
|
Don't remove source directory when copy_into_self is nonzero.
|
|
|
|
|
|
Reported by Arne Henrik Juul.
|
|
|
|
|
|
|
1998-03-14 10:42:01 +00:00
|
|
|
|
* tests/mv/into-self: Test for the above.
|
|
|
|
|
|
* tests/mv/Makefile.am (TESTS): Add into-self.
|
|
|
|
|
|
|
1998-03-13 23:39:10 +00:00
|
|
|
|
1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
|
|
|
|
|
|
|
|
|
|
|
|
* userspec.c (parse_user_spec) [__DJGPP__]: Make function know
|
|
|
|
|
|
about any arbitrary user and group by pretending to be the user
|
|
|
|
|
|
and to belong to the group specified in `spec_arg' argument.
|
|
|
|
|
|
|
|
|
|
|
|
* idcache.c (getuidbyname) [__DJGPP__]: Make function know about
|
|
|
|
|
|
any arbitrary user name.
|
|
|
|
|
|
(getgidbyname) [__DJGPP__]: Make function know about any arbitrary
|
|
|
|
|
|
group name.
|
1998-02-25 22:40:24 +00:00
|
|
|
|
|
|
|
|
|
|
1998-02-24 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/xstrtol.c (TYPE_SIGNED): Define.
|
|
|
|
|
|
(TYPE_MAXIMUM): Define.
|
|
|
|
|
|
(ULONG_MAX): Use TYPE_MAXIMUM.
|
|
|
|
|
|
(LONG_MAX): Use TYPE_MAXIMUM.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/fnmatch.c: Update from libit.
|
|
|
|
|
|
* lib/idcache.c: Update from libit.
|
|
|
|
|
|
|
|
|
|
|
|
1998-02-23 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/quotearg.h, lib/quotearg.c: New files.
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Add quotearg.c.
|
|
|
|
|
|
(noinst_HEADERS): Add quotearg.h.
|
|
|
|
|
|
|
|
|
|
|
|
* src/ls.c: Include new file quotearg.h.
|
|
|
|
|
|
(enum indicator_style): Rename all to classify, and not_programs
|
|
|
|
|
|
to file_type, to match option spellings. All users changed.
|
|
|
|
|
|
(indicator_style_args): New constant.
|
|
|
|
|
|
(quote_funny_chars, quote_as_string, quote_shell): Remove;
|
|
|
|
|
|
(filename_quoting_options, dirname_quoting_options): Use these
|
|
|
|
|
|
variables instead.
|
|
|
|
|
|
(long_options): Add --indicator-style, --quoting-style,
|
|
|
|
|
|
--show-control-chars. Remove --quote-shell.
|
|
|
|
|
|
(dired_dump_obstack): Remove style parameter and don't output style.
|
|
|
|
|
|
(main): Go back to previous method of outputting //DIRED//
|
|
|
|
|
|
and //SUBDIRED// lines, without style. But add a new
|
|
|
|
|
|
//DIRED-OPTIONS// line that does output style.
|
|
|
|
|
|
(decode_switches, usage): Add --indicator-style, --quoting-style,
|
|
|
|
|
|
--show-control-chars. Remove --quote-shell.
|
|
|
|
|
|
(decode_switches): Default from QUOTING_STYLE environment variable.
|
|
|
|
|
|
Set new quoting vars.
|
|
|
|
|
|
(quote_name): Renamed from quote_filename.
|
|
|
|
|
|
Take new arg specifying quoting options.
|
|
|
|
|
|
Always print; do not have a special case for null FILE * argument.
|
|
|
|
|
|
All callers changed.
|
|
|
|
|
|
Move the guts of this function to new file quotearg.c.
|
|
|
|
|
|
(length_of_file_name_and_frills): Use quotearg_buffer instead
|
|
|
|
|
|
of (old) quote_filename to find length of file name.
|
|
|
|
|
|
|
|
|
|
|
|
(decode_switches, parse_ls_color, print_dir, gobble_file,
|
|
|
|
|
|
get_link_name): Quote output in diagnostics.
|
|
|
|
|
|
|
|
|
|
|
|
* NEWS, doc/fileutils.texi: Describe above changes.
|
|
|
|
|
|
* doc/fileutils.texi: Mention that control characters are output
|
|
|
|
|
|
as question marks if output is a terminal.
|
|
|
|
|
|
|
1998-02-22 09:19:36 +00:00
|
|
|
|
1998-02-22 Jim Meyering <meyering@eng.ascend.com>
|
1998-02-21 16:15:23 +00:00
|
|
|
|
|
|
|
|
|
|
* Version 3.16m.
|
|
|
|
|
|
|
1998-02-22 09:19:36 +00:00
|
|
|
|
* ChangeLog-1997: New file.
|
1998-02-22 09:20:33 +00:00
|
|
|
|
* Makefile.am (EXTRA_DIST): Add ChangeLog-1997.
|
1998-02-22 09:19:36 +00:00
|
|
|
|
|
|
|
|
|
|
1998-02-21 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
1998-02-21 16:15:23 +00:00
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/mv/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add mv.
|
|
|
|
|
|
* tests/mv: New directory
|
|
|
|
|
|
* tests/mv/mv-special-1: New test.
|
|
|
|
|
|
|
1998-02-20 21:51:48 +00:00
|
|
|
|
1998-02-20 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
|
|
|
|
|
* src/touch.c: Include get-date.h.
|
|
|
|
|
|
Remove get_date decl.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/getdate.h: Removed. Could cause confusion with an
|
1998-02-22 08:19:19 +00:00
|
|
|
|
automake-generated `.y.h' rule.
|
1998-02-20 21:51:48 +00:00
|
|
|
|
* lib/get-date.h: Renamed from getdate.h.
|
|
|
|
|
|
* lib/getdate.y: s/getdate.h/get-date.h/
|
|
|
|
|
|
* lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
|
|
|
|
|
|
|
1998-02-19 21:37:45 +00:00
|
|
|
|
1998-02-19 Jim Meyering <meyering@eng.ascend.com>
|
1998-02-13 08:49:34 +00:00
|
|
|
|
|
1998-02-19 21:37:45 +00:00
|
|
|
|
1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
|
|
|
|
|
|
* lib/fileblocks.c [__DJGPP__]: Add missing typedef for daddr_t.
|
|
|
|
|
|
|
|
|
|
|
|
1998-02-13 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
1998-02-13 08:49:34 +00:00
|
|
|
|
* src/mv.c (cp_option_init): Set copy_as_regular to 0, not 1.
|
|
|
|
|
|
Otherwise, mv tries to open special files.
|
|
|
|
|
|
Reported by Kjetil Torgrim Homme.
|
|
|
|
|
|
|
1998-02-08 22:17:10 +00:00
|
|
|
|
1998-02-08 Jim Meyering <meyering@eng.ascend.com>
|
1998-02-07 09:59:05 +00:00
|
|
|
|
|
1998-02-09 07:02:15 +00:00
|
|
|
|
* Makefile.maint (cvs-dist): Update po/ to clear modified status
|
|
|
|
|
|
of *.po files before running cvs tag -c.
|
1998-02-09 07:01:02 +00:00
|
|
|
|
|
1998-02-08 22:17:10 +00:00
|
|
|
|
* src/ln.c (usage): Reword to use `TARGET' and `LINK_NAME' in
|
|
|
|
|
|
description.
|
|
|
|
|
|
|
|
|
|
|
|
1998-02-07 Jim Meyering <meyering@eng.ascend.com>
|
|
|
|
|
|
|
1998-02-07 09:59:05 +00:00
|
|
|
|
* GNUmakefile: New file.
|
|
|
|
|
|
* Makefile.am (EXTRA_DIST): Add GNUmakefile.
|
|
|
|
|
|
Don't include Makefile.maint from here. It's included from GNUmakefile.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Don't use AM_MAINTAINER_MODE.
|
|
|
|
|
|
(jm_PERL): Use this.
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (EXTRA_DIST): Remove dcgen.pl. Add dcgen.
|
|
|
|
|
|
(CLEANFILES): Remove dcgen.
|
|
|
|
|
|
(dircolors.h): Use $(PERL).
|
|
|
|
|
|
(.pl): Remove rule.
|
|
|
|
|
|
|
1998-02-01 09:56:46 +00:00
|
|
|
|
1998-02-01 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-02-01 09:58:33 +00:00
|
|
|
|
* POTFILES.in: Add remove.c. Reported by Santiago Vila.
|
1998-02-01 09:56:46 +00:00
|
|
|
|
|
1998-01-28 08:14:56 +00:00
|
|
|
|
1998-01-28 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (print_header): Tweak format to align heading over
|
|
|
|
|
|
last column of `df -i' output. From Andreas Schwab.
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Include Makefile.maint from $(srcdir).
|
|
|
|
|
|
|
1998-01-25 09:29:46 +00:00
|
|
|
|
1998-01-25 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* Version 3.16l.
|
|
|
|
|
|
|
1998-01-25 21:21:47 +00:00
|
|
|
|
* Makefile.maint: New file.
|
|
|
|
|
|
* Makefile.am: Move rules common to textutils, fileutils, sh-utils
|
|
|
|
|
|
into Makefile.maint.
|
|
|
|
|
|
Include Makefile.maint.
|
|
|
|
|
|
(EXTRA_DIST): Add Makefile.maint.
|
|
|
|
|
|
|
1998-01-25 09:29:46 +00:00
|
|
|
|
* src/cp.c (re_protect): Don't fail for non-root when chown fails
|
|
|
|
|
|
due not only to lack of permission (EPERM), but also to lack of
|
|
|
|
|
|
support (EINVAL). Reported by Bengt Martensson.
|
|
|
|
|
|
* src/copy.c (DO_CHOWN): Likewise.
|
|
|
|
|
|
|
1998-01-24 08:46:21 +00:00
|
|
|
|
1998-01-24 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-24 16:22:11 +00:00
|
|
|
|
* tests/ls/time-1 (test_failure): Rename does not update ctime;
|
|
|
|
|
|
link does -- so use ln, not mv.
|
|
|
|
|
|
Note that the SunOS4.1.4 failure of the ctime test is expected.
|
|
|
|
|
|
|
1998-01-24 08:46:21 +00:00
|
|
|
|
* src/system.h (TYPE_MINIMUM): Add extra outer cast to work around
|
|
|
|
|
|
bug in Cray C 5.0.3.0 when T == time_t.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/rm/r-1: Adjust expected output for changed format of
|
|
|
|
|
|
`rm --verbose'.
|
|
|
|
|
|
* tests/rm/r-2: Likewise.
|
|
|
|
|
|
|
1998-01-23 22:09:18 +00:00
|
|
|
|
1998-01-23 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/mktime.c (__mktime_internal): Work around bug in Irix4.0.5's
|
|
|
|
|
|
C compiler. From Kaveh Ghazi.
|
|
|
|
|
|
(TYPE_MINIMUM): Define.
|
|
|
|
|
|
(TYPE_MAXIMUM): Define.
|
|
|
|
|
|
(TIME_T_MIN): Use TYPE_MINIMUM.
|
|
|
|
|
|
(TIME_T_MAX): Use TYPE_MAXIMUM.
|
|
|
|
|
|
|
1998-01-22 08:33:34 +00:00
|
|
|
|
1998-01-22 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-22 09:03:08 +00:00
|
|
|
|
* src/dd.c: Reorder functions to obviate forward dcls.
|
|
|
|
|
|
(quit): Declare to be inline to stifle compile warning.
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp.c (do_copy): Add unreachable `return 0' to stifle warning.
|
|
|
|
|
|
|
1998-01-22 08:33:34 +00:00
|
|
|
|
* tests/rm/sunos-1: Don't use -f. Do adjust $RM if it's a
|
|
|
|
|
|
relative path.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls/time-1: Use GNU touch to work around problems with NFS
|
|
|
|
|
|
caching and/or clock skew. Reported by Kaveh Ghazi.
|
|
|
|
|
|
|
|
|
|
|
|
* tests/ls/Makefile.am (TESTS_ENVIRONMENT): Add TOUCH.
|
|
|
|
|
|
|
|
|
|
|
|
* src/Makefile.am (noinst_HEADERS): Add remove.h.
|
|
|
|
|
|
(mv_SOURCES): Define.
|
|
|
|
|
|
(rm_SOURCES): Define.
|
|
|
|
|
|
|
1998-01-21 16:37:09 +00:00
|
|
|
|
1998-01-21 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c: Declare new global, backup_type.
|
|
|
|
|
|
(main): Initialize backup_type unconditionally.
|
1998-01-22 08:33:34 +00:00
|
|
|
|
(copy_file): Call find_backup_file_name with new argument, backup_type.
|
1998-01-21 16:37:09 +00:00
|
|
|
|
* src/ln.c: Declare new global, backup_type.
|
|
|
|
|
|
(main): Initialize backup_type unconditionally.
|
1998-01-22 08:33:34 +00:00
|
|
|
|
(do_link): Call find_backup_file_name with new argument, backup_type.
|
|
|
|
|
|
|
|
|
|
|
|
* src/copy.c (copy_internal): Use x->backup_type, not the global.
|
|
|
|
|
|
(valid_options): Use VALID_BACKUP_TYPE and VALID_SPARSE_MODE.
|
1998-01-21 16:37:09 +00:00
|
|
|
|
|
|
|
|
|
|
* src/copy.h: (VALID_SPARSE_MODE): Define.
|
|
|
|
|
|
[struct cp_options] (backup_type): New member.
|
|
|
|
|
|
|
|
|
|
|
|
* src/cp.c [NDEBUG]: Comment out definition.
|
|
|
|
|
|
(do_copy): Use x->backup_type, not the global.
|
|
|
|
|
|
|
|
|
|
|
|
* src/remove.c: New file. Contains guts of old rm.c.
|
|
|
|
|
|
(remove_init): New function.
|
|
|
|
|
|
(remove_fini): New function.
|
|
|
|
|
|
(rm): Take third argument, specifying options.
|
|
|
|
|
|
* src/remove.h: New file. Associated dcls.
|
|
|
|
|
|
* src/rm.c: Remove and minimally librarify guts for use in mv.c.
|
|
|
|
|
|
(main): Pass options (`&x') to rm.
|
|
|
|
|
|
Call remove_init and remove_fini instead of open-coding them.
|
|
|
|
|
|
|
|
|
|
|
|
* src/mv.c (rm_option_init): New function.
|
|
|
|
|
|
(cp_option_init): New function.
|
|
|
|
|
|
(copy_reg): Remove now-unused function.
|
|
|
|
|
|
(do_move): Set up for and use `copy.c (copy)' in place of copy_reg.
|
|
|
|
|
|
Set up for and use `remove.c (rm)' in place of unlink.
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-20 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/backupfile.c: Use ANSI function definitions.
|
|
|
|
|
|
Remove global declaration of backup_type.
|
|
|
|
|
|
(simple_backup_suffix): Default to `~', not `.orig'.
|
|
|
|
|
|
Use PARAMS, not __BACKUPFILE_P.
|
|
|
|
|
|
(find_backup_file_name): Add parameter, backup_type.
|
|
|
|
|
|
* lib/backupfile.h: Remove extern declaration of backup_type.
|
|
|
|
|
|
Use PARAMS, not __BACKUPFILE_P.
|
|
|
|
|
|
(VALID_BACKUP_TYPE): Define.
|
|
|
|
|
|
(find_backup_file_name): Adjust prototype.
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* src/df.c (print_header): Fix inode format header to line it up
|
1999-01-16 17:01:20 +00:00
|
|
|
|
with the rest of the output.
|
1998-01-21 16:37:09 +00:00
|
|
|
|
|
|
|
|
|
|
1998-01-13 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/stat.c: Set errno to ENOENT, not EINVAL. This is consistent
|
|
|
|
|
|
with most other implementations.
|
|
|
|
|
|
|
1998-01-12 08:53:18 +00:00
|
|
|
|
1998-01-12 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/fileblocks.c: Include sys/param.h only #if HAVE_SYS_PARAM_H.
|
1998-01-12 08:55:42 +00:00
|
|
|
|
Move function-spanning `#if ...BSIZE' directive to follow inclusion
|
|
|
|
|
|
of sys/param.h since BSIZE is sometimes defined in sys/param.h.
|
1998-01-12 08:55:01 +00:00
|
|
|
|
Reported by Philippe De Muyter.
|
1998-01-12 08:53:18 +00:00
|
|
|
|
|
1998-01-10 10:36:41 +00:00
|
|
|
|
1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-11 09:14:02 +00:00
|
|
|
|
* Version 3.16k.
|
|
|
|
|
|
|
1998-01-10 15:08:00 +00:00
|
|
|
|
* src/install.c (install_file_to_path): New function.
|
1998-01-11 09:14:02 +00:00
|
|
|
|
FIXME: update fileutils.texi.
|
1998-01-10 15:08:00 +00:00
|
|
|
|
(main): Handle new option, -D.
|
|
|
|
|
|
Based on a patch from Marty Leisner.
|
|
|
|
|
|
(usage): Describe -D.
|
|
|
|
|
|
|
1998-01-10 14:23:08 +00:00
|
|
|
|
* src/ls.c (decode_switches) [-u]: Fix bug whereby -u worked only
|
|
|
|
|
|
with -l or -t. Now, -u (like -c) implies --sort=time.
|
1998-01-10 13:36:09 +00:00
|
|
|
|
(usage): Correct descriptions of --sort, --time, and -t.
|
|
|
|
|
|
Suggestions from Andreas Schwab.
|
|
|
|
|
|
|
1998-01-10 15:09:46 +00:00
|
|
|
|
Add test for the above fix.
|
1998-01-10 13:36:09 +00:00
|
|
|
|
* configure.in (AC_OUTPUT): Add tests/ls/Makefile.
|
|
|
|
|
|
* tests/Makefile.am (SUBDIRS): Add ls.
|
|
|
|
|
|
* tests/ls: New directory.
|
|
|
|
|
|
* tests/ls/Makefile.am: New file.
|
|
|
|
|
|
* tests/ls/time-1: New file.
|
|
|
|
|
|
|
1998-01-10 10:36:41 +00:00
|
|
|
|
* lib/makepath.c (make_path): Reformat 3 if-stmts to test
|
|
|
|
|
|
`if (newly_created_dir)' only once. Suggestion from Andreas Schwab.
|
|
|
|
|
|
|
1998-01-06 23:53:50 +00:00
|
|
|
|
1998-01-06 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-07 07:45:46 +00:00
|
|
|
|
* lib/getdate.y: Move inclusion of getdate.h and dependent extern
|
|
|
|
|
|
declarations down so getdate.h's prototype follows the sometimes-
|
|
|
|
|
|
enabled definition of `const' to nothing. Otherwise, the prototype
|
|
|
|
|
|
wouldn't match the definition because of the defined-away `const'.
|
1998-01-06 23:53:50 +00:00
|
|
|
|
From Kaveh Ghazi.
|
1998-01-07 07:45:46 +00:00
|
|
|
|
(get_date): ANSI-fy definition.
|
|
|
|
|
|
Add %expect directive.
|
1998-01-06 23:53:50 +00:00
|
|
|
|
|
1998-01-10 10:36:41 +00:00
|
|
|
|
1998-01-05 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/makepath.c (make_path): Put only newly created directories
|
1999-01-16 17:01:20 +00:00
|
|
|
|
on the LEADING_DIRS list.
|
1998-01-10 10:36:41 +00:00
|
|
|
|
|
1998-01-05 17:43:31 +00:00
|
|
|
|
1998-01-05 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
* lib/fsusage.c (PROPAGATE_ALL_ONES): New macro.
|
|
|
|
|
|
(get_fs_usage): If a value consists entirely of 1 bits,
|
|
|
|
|
|
propagate this info to the output by setting it to (uintmax_t) -1.
|
|
|
|
|
|
* src/df.c (df_readable): New function.
|
|
|
|
|
|
(show_dev): If a value consists entirely of 1 bits, or is derived
|
|
|
|
|
|
from some other value that consists entirely of 1 bits, report "-".
|
|
|
|
|
|
Check inode and block counts more carefully for plausibility,
|
|
|
|
|
|
to avoid arithmetic overflow when computing percentages.
|
|
|
|
|
|
|
1998-01-04 22:54:19 +00:00
|
|
|
|
1998-01-04 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-04 23:27:12 +00:00
|
|
|
|
* Version 3.16j.
|
|
|
|
|
|
|
1998-01-04 23:28:28 +00:00
|
|
|
|
* lib/Makefile.in: Regenerated with patched automake-1.2d.
|
|
|
|
|
|
See README-alpha.
|
|
|
|
|
|
|
1998-01-04 22:54:19 +00:00
|
|
|
|
* src/chgrp.c: Use a single enumerated type, Verbosity, instead of
|
|
|
|
|
|
the two booleans, verbose and changes_only. This fixes a bug whereby
|
|
|
|
|
|
--change had the same effect as --verbose.
|
|
|
|
|
|
* src/chmod.c: Likewise.
|
|
|
|
|
|
* src/chown.c: Likewise.
|
|
|
|
|
|
Reported by Paul Eggert.
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-04 Paul Eggert <eggert@twinsun.com>
|
|
|
|
|
|
|
|
|
|
|
|
Check for write errors more carefully.
|
|
|
|
|
|
|
|
|
|
|
|
* lib/Makefile.am (libfu_a_SOURCES): Add closeout.c.
|
|
|
|
|
|
(noinst_HEADERS): Add closeout.h.
|
|
|
|
|
|
* lib/closeout.c, lib/closeout.h: New files.
|
|
|
|
|
|
* lib/long-options.c (parse_long_options),
|
|
|
|
|
|
src/chgrp.c, src/chmod.c, src/chown.c, src/cp.c, src/dd.c,
|
|
|
|
|
|
src/df.c, src/dircolors.c, src/du.c, src/install.c, src/ln.c,
|
|
|
|
|
|
src/ls.c, src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mv.c,
|
|
|
|
|
|
src/mvdir.c, src/rm.c, src/rmdir.c, src/sync.c, src/touch.c
|
|
|
|
|
|
(main, usage): Check for write error to stdout before exiting.
|
|
|
|
|
|
Include "closeout.h".
|
|
|
|
|
|
|
1998-01-03 11:58:49 +00:00
|
|
|
|
1998-01-03 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-03 16:47:35 +00:00
|
|
|
|
* src/df.c (show_dev): Treat `fsu.fsu_bavail == (unsigned long) -1'
|
|
|
|
|
|
just like `fsu.fsu_blocks == 0' as an indicator that usage information
|
1998-01-03 18:09:23 +00:00
|
|
|
|
is invalid. This happens with Solaris-5.5.1 CD-ROM mount points.
|
1998-01-03 16:47:35 +00:00
|
|
|
|
|
1998-01-03 11:58:49 +00:00
|
|
|
|
* lib/save-cwd.h: Guard PARAMS-enabling definition with
|
|
|
|
|
|
`defined PROTOTYPES || (defined __STDC__ && __STDC__)' to avoid
|
|
|
|
|
|
problems with Irix4's cc. From Kaveh Ghazi.
|
|
|
|
|
|
* lib/getdate.h: Likewise, but just to be consistent.
|
|
|
|
|
|
|
|
|
|
|
|
* configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
|
|
|
|
|
|
those files will be built via the ANSI2KNR-filtering rules if necessary.
|
1998-01-03 18:10:47 +00:00
|
|
|
|
Reported by Kaveh Ghazi.
|
1998-01-03 11:58:49 +00:00
|
|
|
|
|
1998-01-02 23:16:53 +00:00
|
|
|
|
1998-01-02 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-01 19:36:19 +00:00
|
|
|
|
* Version 3.16i.
|
|
|
|
|
|
|
1998-01-02 23:18:08 +00:00
|
|
|
|
Fix problem with `install -d'. Reported by Marty Leisner.
|
|
|
|
|
|
|
|
|
|
|
|
* src/install.c (get_ids): When otherwise unspecified,
|
|
|
|
|
|
set uid and gid to -1.
|
1998-01-02 23:16:53 +00:00
|
|
|
|
* lib/makepath.c (make_path): Try to change ownership only if we've
|
|
|
|
|
|
just created the directory. Fix latent bug (s/&&/||/ in two places --
|
|
|
|
|
|
also, note that it could not be exercised via install or mkdir)
|
|
|
|
|
|
whereby chown would not be invoked when only one of owner/group is
|
|
|
|
|
|
not -1.
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-01 Jim Meyering <meyering@na-net.ornl.gov>
|
|
|
|
|
|
|
1998-01-01 21:33:29 +00:00
|
|
|
|
* src/rm.c (remove_cwd_entries): Initialize the entry-name obstack
|
|
|
|
|
|
only once and never free it.
|
|
|
|
|
|
|
1992-10-31 20:42:48 +00:00
|
|
|
|
Local Variables:
|
|
|
|
|
|
version-control: never
|
|
|
|
|
|
End:
|