Jim Meyering [Wed, 16 May 2001 07:33:22 +0000 (07:33 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Wed, 16 May 2001 07:30:54 +0000 (07:30 +0000)]
.
Jim Meyering [Tue, 15 May 2001 15:46:59 +0000 (15:46 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 15:45:58 +0000 (15:45 +0000)]
(parse_obsolescent_option): Use t_count_lines, not
count_lines, in error message.
Jim Meyering [Tue, 15 May 2001 14:02:28 +0000 (14:02 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 14:02:19 +0000 (14:02 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Tue, 15 May 2001 10:11:19 +0000 (10:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 10:11:15 +0000 (10:11 +0000)]
(struct fileinfo.linkmode): Now st_mode.
(print_color_indicator, print_name_with_quoting, print_type_indicator,
length_of_file_name_and_frills):
Use mode_t, not unsigned int, to store modes.
(dired_dump_obstack): Do not assume size fits in 'int'.
(get_link_name): readlink returns ssize_t, not int.
(make_link_path): Store buffer size as size_t, not int.
(print_long_format): Use unsigned long, not unsigned, to print
nlink_t, uid_t, gid_t, major_t, minor_t.
Jim Meyering [Sun, 13 May 2001 18:24:57 +0000 (18:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 18:24:44 +0000 (18:24 +0000)]
(major_t, minor_t): Define to unsigned int if undefined.
Jim Meyering [Sun, 13 May 2001 18:23:39 +0000 (18:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 18:23:05 +0000 (18:23 +0000)]
(main): Check for NODEV device only if NODEV is defined.
Jim Meyering [Sun, 13 May 2001 18:22:54 +0000 (18:22 +0000)]
(NODEV): Remove, undoing previous change.
Jim Meyering [Sun, 13 May 2001 15:29:21 +0000 (15:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:29:15 +0000 (15:29 +0000)]
(dir_name, dir_len): Define to different names
to avoid shadowing warnings due to new declarations from dirname.h.
Jim Meyering [Sun, 13 May 2001 15:23:54 +0000 (15:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:23:20 +0000 (15:23 +0000)]
Add new --dereference-command-line option.
-H now means this instead of meaning --si, as POSIX requires.
Jim Meyering [Sun, 13 May 2001 15:22:28 +0000 (15:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:22:23 +0000 (15:22 +0000)]
(run_tests): Fail if any test name is longer than 12 bytes.
Jim Meyering [Sun, 13 May 2001 15:21:50 +0000 (15:21 +0000)]
Shorten test names so the length of a resulting file name doesn't exceed 14.
Jim Meyering [Sun, 13 May 2001 15:14:20 +0000 (15:14 +0000)]
Rename slink-dir test to slink-dir-dF. Add new tests
slink-dir-F, slink-dir-dFH, slink-dir-dFL.
Jim Meyering [Sun, 13 May 2001 15:14:00 +0000 (15:14 +0000)]
(enum Dereference_symlink): New type.
(dereference): New var, replacing trace_links, which was removed.
(long_options, main, decode_switches, gobble_file, usage):
Implement the changes.
Jim Meyering [Sun, 13 May 2001 10:21:25 +0000 (10:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 10:21:08 +0000 (10:21 +0000)]
(NODEV): New macro, if not already defined.
Jim Meyering [Sun, 13 May 2001 10:20:36 +0000 (10:20 +0000)]
(main): Check for overflow when converting out of uintmax_t.
Do not assume that major_t and minor_t are no wider than int.
Check for makedev failures. Convert device numbers via uintmax_t, not
unsigned long, just in case. Coalesce duplicate code in the block and
character device cases.
Jim Meyering [Sat, 12 May 2001 20:55:19 +0000 (20:55 +0000)]
.
Jim Meyering [Sat, 12 May 2001 16:06:36 +0000 (16:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 16:05:51 +0000 (16:05 +0000)]
Include "dirname.h".
(base_name): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 16:05:12 +0000 (16:05 +0000)]
Include "dirname.h".
(base_name, strip_trailing_slashes): Remove decls; now in dirname.h.
(main): Use base_len instead of strip_trailing_slashes to strip
trailing slashes.
Jim Meyering [Sat, 12 May 2001 16:03:19 +0000 (16:03 +0000)]
(strip_trailing_slashes): Remove decl; now in dirname.h.
(main): Use dir_len rather than dir_name_r.
Jim Meyering [Sat, 12 May 2001 15:50:50 +0000 (15:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 15:50:27 +0000 (15:50 +0000)]
(ISSLASH): Remove; now in dirname.h.
(strip_trailing_slashes): Return nonzero if
a slash was stripped. Do not strip the last slash after a
file system prefix.
Jim Meyering [Sat, 12 May 2001 15:48:00 +0000 (15:48 +0000)]
(base_name): Remove; now in dirname.h.
(STREQ): Remove.
(same_name): Handle the case where the basename ends in trailing '/'.
Jim Meyering [Sat, 12 May 2001 15:46:36 +0000 (15:46 +0000)]
(DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): New macros.
(base_name, base_len, dir_len, strip_trailing_slashes): New decls.
Jim Meyering [Sat, 12 May 2001 15:45:43 +0000 (15:45 +0000)]
(DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
(path_concat): Use base_len to compute
base length, not strlen; this means we cannot rely on memcpy
to null-terminate.
Jim Meyering [Sat, 12 May 2001 15:41:11 +0000 (15:41 +0000)]
Use "", not <> to include non-system header files.
Jim Meyering [Sat, 12 May 2001 15:40:47 +0000 (15:40 +0000)]
Use "", not <> to include non-system header files.
Jim Meyering [Sat, 12 May 2001 15:39:45 +0000 (15:39 +0000)]
Use "", not <> to include dirname.h.
Jim Meyering [Sat, 12 May 2001 15:38:00 +0000 (15:38 +0000)]
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen. All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL. All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
Jim Meyering [Sat, 12 May 2001 14:23:49 +0000 (14:23 +0000)]
(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
Do not include <stdio.h>, <assert.h>; no longer needed.
Include <string.h>, <dirname.h>.
(base_name): Allow file names ending in slashes, other than names
that are all slashes. In this case, return the basename followed
by the slashes. This is more general, and can be used in places
where the original base_name purposely had an assertion failure.
(base_len): New function.
Jim Meyering [Sat, 12 May 2001 14:20:43 +0000 (14:20 +0000)]
(base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(find_backup_file_name, max_backup_version): Use base_len instead of
rolling it ourselves.
Handle the case of "" and (on DOS) "C:" correctly.
Jim Meyering [Sat, 12 May 2001 14:13:36 +0000 (14:13 +0000)]
(ISSLASH, base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(addext): Use base_len to trim redundant
trailing slashes instead of doing it ourselves.
But do not trim the last slash if it is not redundant.
Jim Meyering [Sat, 12 May 2001 10:05:42 +0000 (10:05 +0000)]
Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 10:05:15 +0000 (10:05 +0000)]
Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 10:04:13 +0000 (10:04 +0000)]
.
Jim Meyering [Sat, 12 May 2001 10:03:16 +0000 (10:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 10:03:07 +0000 (10:03 +0000)]
(strip_trailing_slashes): Likewise.
(find_mount_point): No need to strip trailing
slashes before invoking new dir_name.
Jim Meyering [Sat, 12 May 2001 10:00:52 +0000 (10:00 +0000)]
(strip_trailing_slashes): Remove; now in dirname.h.
(make_path_private): Use dir_len instead of
dir_name, and avoid an extra mealloc call.
Jim Meyering [Sat, 12 May 2001 09:58:03 +0000 (09:58 +0000)]
(copy_internal): Remove the code that tested for NULL
dir_name return value. That can't happen.
Jim Meyering [Sat, 12 May 2001 09:54:19 +0000 (09:54 +0000)]
Include "dirname.h".
(strip_trailing_slashes_2): Remove; now done by
strip_trailing_slashes. All callers changed.
Jim Meyering [Sat, 12 May 2001 09:53:45 +0000 (09:53 +0000)]
(base_name): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 09:52:56 +0000 (09:52 +0000)]
Include dirname.h, to get base_name
Jim Meyering [Sat, 12 May 2001 09:51:59 +0000 (09:51 +0000)]
include dirname.h.
Jim Meyering [Sat, 12 May 2001 09:51:23 +0000 (09:51 +0000)]
(strip_trailing_slashes): Remove declaration; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 08:44:31 +0000 (08:44 +0000)]
Wording changes related to -o, -n, and -g.
Jim Meyering [Sat, 12 May 2001 08:23:23 +0000 (08:23 +0000)]
(usage): Minor wording changes related to -o, -n, and -g.
From Paul Eggert.
Jim Meyering [Sat, 12 May 2001 08:10:33 +0000 (08:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 08:04:52 +0000 (08:04 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 08:04:44 +0000 (08:04 +0000)]
(mode_changed, change_file_mode):
There's no need to invoke both lstat and stat here, so call just
one of the two functions.
Jim Meyering [Fri, 11 May 2001 14:06:22 +0000 (14:06 +0000)]
.
Jim Meyering [Fri, 11 May 2001 11:23:37 +0000 (11:23 +0000)]
(shred invocation): Warn about backups and mirrors.
Jim Meyering [Fri, 11 May 2001 11:23:24 +0000 (11:23 +0000)]
(usage): Warn about backups and mirrors.
Jim Meyering [Fri, 11 May 2001 10:38:56 +0000 (10:38 +0000)]
s/POSIX/posix/
Jim Meyering [Fri, 11 May 2001 10:38:23 +0000 (10:38 +0000)]
remove trailing spaces
Jim Meyering [Fri, 11 May 2001 10:38:13 +0000 (10:38 +0000)]
fix typo: missing `r}' in this line:
@itemx --temporary-directory=@var{tempdir}
Jim Meyering [Fri, 11 May 2001 09:14:22 +0000 (09:14 +0000)]
shift off the leading `_'
Jim Meyering [Fri, 11 May 2001 09:10:09 +0000 (09:10 +0000)]
Factor out the root-only test into this ...
Source ../root-only instead.
Jim Meyering [Fri, 11 May 2001 08:19:41 +0000 (08:19 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 May 2001 08:18:18 +0000 (08:18 +0000)]
(shred invocation): Warn about backups. From Nelson Beebe.
Jim Meyering [Fri, 11 May 2001 07:53:44 +0000 (07:53 +0000)]
add a space after a period
(true invocation): fix a typo
Jim Meyering [Fri, 11 May 2001 07:36:22 +0000 (07:36 +0000)]
s/restriction deletion flag
/restricted deletion flag/
Jim Meyering [Fri, 11 May 2001 07:22:53 +0000 (07:22 +0000)]
.
Jim Meyering [Thu, 10 May 2001 14:28:42 +0000 (14:28 +0000)]
*** empty log message ***
Jim Meyering [Thu, 10 May 2001 14:25:48 +0000 (14:25 +0000)]
(main): Fix thinko: s/argv[optind]/optarg/.
Jim Meyering [Wed, 9 May 2001 09:16:08 +0000 (09:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 May 2001 09:16:03 +0000 (09:16 +0000)]
(jm_MACROS): Do not check for fseeko; no longer used.
Jim Meyering [Mon, 7 May 2001 20:21:18 +0000 (20:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 5 May 2001 17:32:40 +0000 (17:32 +0000)]
tweak diagnostic
Jim Meyering [Sat, 5 May 2001 17:31:45 +0000 (17:31 +0000)]
(decode_switches): Complain if the envvar, QUOTING_STYLE,
is set to an invalid value.
Move some declarations of locals into scopes where they're used.
Jim Meyering [Sat, 5 May 2001 14:29:38 +0000 (14:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 5 May 2001 14:29:02 +0000 (14:29 +0000)]
(print_owner): New global variable.
(usage): Update the description of -g.
(decode_switches): Honor the -g option (omit owner information),
now that POSIX specifies it.
(print_long_format): Don't print owner name if -g was specified.
Move declaration of `user_name' into the scope where it's used.
(print_group): Rename global from `inhibit_group'. Update all
uses accordingly.
(decode_switches): Make -n work just like -l, except
with numeric IDs, per POSIX. Before, to have any effect, -n had
to be used with -l. Reported by Dale Scheetz.
(usage): Update the description of -n.
Separate the descriptions of -n and --numeric-uid-gid.
Split string in --help output that had exceeded my limit of 2048 bytes.
Jim Meyering [Sat, 5 May 2001 12:54:46 +0000 (12:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 5 May 2001 12:54:37 +0000 (12:54 +0000)]
(usage): Correct description of -3.
Jim Meyering [Sat, 5 May 2001 12:54:16 +0000 (12:54 +0000)]
*** empty log message ***
Jim Meyering [Wed, 2 May 2001 09:52:32 +0000 (09:52 +0000)]
Update from master repository.
Jim Meyering [Wed, 2 May 2001 08:09:14 +0000 (08:09 +0000)]
(tgz-size, xd-size): Compute sizes.
(announcement): Include sizes of .tar.gz and .xdelta files
in the announcement.
Jim Meyering [Sun, 29 Apr 2001 21:22:52 +0000 (21:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 20:50:48 +0000 (20:50 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 20:49:11 +0000 (20:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 11:33:44 +0000 (11:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 11:22:48 +0000 (11:22 +0000)]
--help:
downcase bulleted items
remove some periods
Jim Meyering [Sun, 29 Apr 2001 08:36:21 +0000 (08:36 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 07:02:17 +0000 (07:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 29 Apr 2001 07:01:41 +0000 (07:01 +0000)]
(usage): Include in --help output the warning about
some of the filesystem types on which shred is not effective.
Jim Meyering [Sun, 29 Apr 2001 07:01:22 +0000 (07:01 +0000)]
(usage): Mention shred.
Jim Meyering [Sun, 29 Apr 2001 07:01:12 +0000 (07:01 +0000)]
Refer to shred.
Remove the example showing how to remove `-foo', since that is now
in the --help output (and hence automatically included).
Jim Meyering [Wed, 25 Apr 2001 12:30:56 +0000 (12:30 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Apr 2001 12:30:52 +0000 (12:30 +0000)]
(my-distcheck): Add a comment.
Jim Meyering [Wed, 25 Apr 2001 08:27:16 +0000 (08:27 +0000)]
*** empty log message ***
Jim Meyering [Tue, 24 Apr 2001 07:21:14 +0000 (07:21 +0000)]
*** empty log message ***