Jim Meyering
b9c210715c
back out last change -- the two should be separate
2000-05-09 20:27:11 +00:00
Jim Meyering
5c4406f731
Include sys/types.h in shred.c before including
...
sys/stat.h or system.h. From John David Anglin.
2000-05-09 20:25:58 +00:00
Jim Meyering
babf9bb7ac
(case_GETOPT_VERSION_CHAR): Don't call close_stdout.
2000-05-09 06:32:24 +00:00
Jim Meyering
661f74698e
Include "closeout.h".
...
(usage): Call close_stdout just before exit.
2000-05-07 15:00:12 +00:00
Jim Meyering
c6b0fefde1
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:57:52 +00:00
Jim Meyering
2d4fd1ab6e
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:57:24 +00:00
Jim Meyering
c4d7de4d1c
(usage): Call close_stdout_status.
2000-05-07 14:57:03 +00:00
Jim Meyering
7942b60d47
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:56:12 +00:00
Jim Meyering
c6bd79ad34
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:55:15 +00:00
Jim Meyering
52150ef51d
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:54:43 +00:00
Jim Meyering
071e5e3b25
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:53:15 +00:00
Jim Meyering
21f7f8fb60
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:52:54 +00:00
Jim Meyering
1a898f0449
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:52:16 +00:00
Jim Meyering
ab241ac3be
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:51:49 +00:00
Jim Meyering
d3683509b3
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:51:07 +00:00
Jim Meyering
ddb8aa8b9f
(usage): Call close_stdout_status.
2000-05-07 14:50:39 +00:00
Jim Meyering
73ed5ed51e
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:49:06 +00:00
Jim Meyering
a3d40a9447
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:48:25 +00:00
Jim Meyering
309c1c3e47
Include "closeout.h".
...
(usage): Call close_stdout just before exit.
2000-05-07 14:47:44 +00:00
Jim Meyering
72bdac7271
Include "closeout.h".
...
(main): Call atexit with close_stdout.
2000-05-07 14:46:33 +00:00
Jim Meyering
f1013a1535
Include "closeout.h".
...
(main): Call atexit with close_stdout.
Remove explicit close_stdout.
2000-05-07 14:46:11 +00:00
Jim Meyering
e1133c7a28
Include "closeout.h".
...
(usage): Call close_stdout just before exit.
2000-05-07 14:41:19 +00:00
Jim Meyering
9b6eb98d41
(EEXIST): Remove now-unused definition.
...
(ENOTEMPTY): Likewise.
(errno_rmdir_non_empty): Rewrite to use RMDIR_ERRNO_NOT_EMPTY,
which is determined by the autoconf test in m4/rmdir-errno.m4..
2000-05-06 14:31:32 +00:00
Jim Meyering
c141f3a34e
(main): Warn about arguments, don't fail.
...
(usage): Call close_stdout_status from here as well as from main.
2000-05-06 13:18:00 +00:00
Jim Meyering
3140984fab
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:55:32 +00:00
Jim Meyering
19c397acdc
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:53:41 +00:00
Jim Meyering
80b5341cb8
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:52:22 +00:00
Jim Meyering
f2fde491db
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:51:02 +00:00
Jim Meyering
e1c98ab3fb
Include "closeout.h".
...
(main): Call close_stdout.
2000-05-05 21:49:44 +00:00
Jim Meyering
3684b16708
Exit nonzero upon write failure.
...
Include "closeout.h".
(main): Call close_stdout.
Reported by Ian Jackson via Michael Stone.
2000-05-05 21:41:29 +00:00
Jim Meyering
92d235c21a
Remove declaration of strndup.
2000-05-03 08:40:33 +00:00
Jim Meyering
e6d69926e6
(!HAVE_DECL_STRNDUP): Declare strndup.
2000-05-03 08:37:40 +00:00
Jim Meyering
4c69db64f2
don't hard-code `rm'
2000-05-02 06:56:31 +00:00
Jim Meyering
acd9c429c0
(usage): Add the answer to `How do I remove a file named -f?'
2000-05-02 06:55:49 +00:00
Jim Meyering
624dd54796
(change_attributes): Don't remove the destination file upon failure.
2000-05-01 14:09:19 +00:00
Jim Meyering
ef34c8704c
[checked in with intention to back out...]
...
(change_attributes): Unlink the destination file
if either of the chown or the chmod calls fails. Don't even attempt
the chmod if the chown fails.
Suggestion from Marc Olzheim.
2000-05-01 13:55:09 +00:00
Jim Meyering
034fbbd8ac
(O_NOCTTY): Define if not defined already.
...
(touch): Add O_NOCTTY to the flags passed to open.
2000-04-30 21:48:23 +00:00
Jim Meyering
9a7f0b1542
tweak comment
2000-04-30 16:19:57 +00:00
Jim Meyering
9a909400ba
Detect and terminate upon write failure.
2000-04-30 16:19:06 +00:00
Jim Meyering
b958bd6f2b
[LSTAT_FOLLOWS_SLASHED_SYMLINK] (lstat): Define to rpl_lstat.
2000-04-29 10:17:42 +00:00
Jim Meyering
4954d34c14
(pop_dir): Remove through_symlink arg; use null cwd
...
for that purpose instead.
(count_entry): Also save the directory if we're saving more
than one level.
Fix file descriptor and memory leak when chdir fails.
2000-04-27 12:23:59 +00:00
Jim Meyering
5aeb94aeb4
Rename global: s/path_mode/create_parents/.
...
(main): No longer perform explicit chmod when creating
parent directories, since make_path now does the chmod.
2000-04-26 12:43:12 +00:00
Jim Meyering
98f5206a61
[__BEOS__]: Ignore O_BINARY and O_TEXT.
2000-04-19 15:36:05 +00:00
Jim Meyering
df85b33ee3
Accept new option: --from=CURRENT_OWNER:CURRENT_GROUP.
...
(enum) [FROM_OPTION]: New member.
(long_options): New getopt spec.
(change_file_owner): Add old_user, old_group parameters. Use them.
(change_dir_owner): Likewise.
(usage): Describe.
(main): New case.
2000-04-17 08:19:52 +00:00
Jim Meyering
d37e7835f9
Don't remove support for --max-consecutive-size-changes just yet...
2000-04-17 06:49:07 +00:00
Jim Meyering
a423a1374f
Remove option: --max-consecutive-size-changes=N.
...
Doesn't seem useful.
(usage): Remove description.
2000-04-16 16:03:34 +00:00
Jim Meyering
c559eefb84
New option: --strip-trailing-slashes.
...
(enum) [STRIP_TRAILING_SLASHES_OPTION]: New member.
(remove_trailing_slashes): New global.
(long_opts): New getopt spec.
(usage): Describe.
(do_copy): Strip trailing slashes on SOURCE names only if the new
option has been specified.
(main): New case.
2000-04-16 13:51:22 +00:00
Jim Meyering
125de05913
add comment
2000-04-16 12:16:03 +00:00
Jim Meyering
10acebe2cb
tweak copyright date
2000-04-14 16:12:16 +00:00
Jim Meyering
2e469b088b
Shorten #ifdef HAVE_...' to #if HAVE_...' and
...
remove unnecessary uses of `defined' (aesthetics).
2000-04-14 12:41:05 +00:00