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 ***
Jim Meyering [Tue, 24 Apr 2001 07:16:45 +0000 (07:16 +0000)]
*** empty log message ***
Jim Meyering [Tue, 24 Apr 2001 07:16:28 +0000 (07:16 +0000)]
Include wheel-size.h.
(WHEEL_START): Adjust definition.
(wheel_tab[]): Remove body of definition.
Include generated file, wheel.h, instead.
Jim Meyering [Tue, 24 Apr 2001 07:07:29 +0000 (07:07 +0000)]
.
Jim Meyering [Mon, 23 Apr 2001 07:38:44 +0000 (07:38 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Apr 2001 07:38:33 +0000 (07:38 +0000)]
(dd_copy): When using sync with either block or unblock,
pad with spaces.
Jim Meyering [Mon, 23 Apr 2001 07:33:37 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Apr 2001 07:31:17 +0000 (07:31 +0000)]
(block-sync-1): new test, for just-fixed bug
Jim Meyering [Sun, 22 Apr 2001 21:37:36 +0000 (21:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 21:35:11 +0000 (21:35 +0000)]
fix typo in comment
Jim Meyering [Sun, 22 Apr 2001 21:34:20 +0000 (21:34 +0000)]
(decode_switches): Ensure that -1 has no effect when it follows -l.
Jim Meyering [Sun, 22 Apr 2001 16:52:23 +0000 (16:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 16:50:47 +0000 (16:50 +0000)]
.
Jim Meyering [Sun, 22 Apr 2001 11:44:56 +0000 (11:44 +0000)]
fix typo in --help output
Jim Meyering [Sun, 22 Apr 2001 10:14:20 +0000 (10:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 10:12:59 +0000 (10:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 10:12:25 +0000 (10:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 10:09:21 +0000 (10:09 +0000)]
.
Jim Meyering [Sun, 22 Apr 2001 09:16:14 +0000 (09:16 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 09:15:17 +0000 (09:15 +0000)]
(main): Fix off-by-one error introduced with last change.
Jim Meyering [Sun, 22 Apr 2001 09:14:14 +0000 (09:14 +0000)]
check -R, too
Jim Meyering [Sun, 22 Apr 2001 09:11:08 +0000 (09:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 09:10:29 +0000 (09:10 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 09:08:53 +0000 (09:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 09:08:45 +0000 (09:08 +0000)]
(TESTS): Add no-arg.
Jim Meyering [Sun, 22 Apr 2001 08:31:40 +0000 (08:31 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 08:31:24 +0000 (08:31 +0000)]
Fix bugs when computing length of large files.
Add overflow and write error checks. Use uint_fast32_t, not
unsigned long, to do checksum calculation, as C99 says
uint_fast32_t should be no slower and might be faster.
Include <stdio.h> and "system.h" even if CRCTAB is defined,
so that the code will compile if CRCTAB is defined.
Include "human.h" if CRCTAB is not defined.
(uint_fast32_t): Define if it appears that stdint.h didn't.
(BIT, remainder, main, crctab): Use uint_fast32_t, not unsigned long,
for checksums.
(fill_r, remainder, main): Use ANSI prototypes.
(fill_r, remainder, main): Omit duplicate code.
(main): Use uintmax_t, not unsigned long, for file lengths.
Use size_t, not long, for result of fread.
Check for overflow when computing file lengths.
Check for write error immediately after printing a line, so that
we don't write to stdout indefinitely after an error.
Jim Meyering [Sun, 22 Apr 2001 07:29:13 +0000 (07:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Apr 2001 07:28:58 +0000 (07:28 +0000)]
(usage): Mention that sync makes dd pad with spaces (rather than NULs)
when used with block or unblock.
Jim Meyering [Sun, 22 Apr 2001 07:28:11 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 18:26:19 +0000 (18:26 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 17:52:02 +0000 (17:52 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 17:51:46 +0000 (17:51 +0000)]
Write to a new file, so that a restrictive umask doesn't interfere.
Jim Meyering [Sat, 21 Apr 2001 14:39:33 +0000 (14:39 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 14:39:14 +0000 (14:39 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 14:36:32 +0000 (14:36 +0000)]
*** empty log message ***