Jim Meyering
586b7bf510
*** empty log message ***
2000-05-20 09:44:20 +00:00
Jim Meyering
d0cc040dd8
*** empty log message ***
2000-05-20 09:43:40 +00:00
Jim Meyering
358c9c706a
*** empty log message ***
2000-05-20 09:35:13 +00:00
Jim Meyering
dd19256dcd
.
2000-05-20 09:31:14 +00:00
Jim Meyering
8fad3eb9e0
.
2000-05-20 09:30:01 +00:00
Jim Meyering
1adc899668
.
2000-05-20 09:24:29 +00:00
Jim Meyering
de4a1fe053
*** empty log message ***
2000-05-20 09:23:48 +00:00
Jim Meyering
5c34a06b45
(struct File_spec) [have_device, st_dev]: New members
2000-05-20 09:23:41 +00:00
Jim Meyering
f5fb72e12c
Save device number as well as inode number for each directory.
...
(struct active_dir_ent) [st_dev]: New member.
[st_ino]: Rename from `inum'.
(make_active_dir_ent) [device]: New parameter.
(hash_compare_active_dir_ents): Compare using SAME_INODE macro.
(fspec_init_common): New function, factored out.
(fspec_init_file): Initialize have_device member.
(fspec_get_full_mode): Remove parameter. Update caller.
Set have_device and st_dev members.
2000-05-20 09:23:27 +00:00
Jim Meyering
8fd90d4b2b
add RUN_EXPENSIVE_TESTS junk
2000-05-20 09:09:18 +00:00
Jim Meyering
d402b210ea
don't use $test
2000-05-20 08:52:03 +00:00
Jim Meyering
619ffb2bff
fail if final rm fails
2000-05-20 08:48:39 +00:00
Jim Meyering
abd2b295f2
Clean up.
2000-05-20 08:42:44 +00:00
Jim Meyering
396069fce5
reorder so as not to use `head -c N'
2000-05-20 08:11:51 +00:00
Jim Meyering
a5c0da5365
(LC_ALL): Set it unconditionally.
2000-05-19 22:37:45 +00:00
Jim Meyering
bc009f5b5f
warn the user it will take a while
2000-05-19 07:12:09 +00:00
Jim Meyering
5c136d939e
put hash at the end of the list
2000-05-19 07:10:09 +00:00
Jim Meyering
b55a5cc86c
(rm): Combine adjacent fputc and fprintf.
2000-05-18 21:10:55 +00:00
Jim Meyering
4d453f5691
remove some parens from some cpp lines
2000-05-18 14:56:42 +00:00
Jim Meyering
9d67112156
(remove_dir): Detect (and fail upon) attempt to subvert a running `rm -r'.
...
Reported by Morten Welinder.
2000-05-18 14:49:34 +00:00
Jim Meyering
c880f6f9e0
.
2000-05-18 14:28:09 +00:00
Jim Meyering
8469888ca2
*** empty log message ***
2000-05-18 14:26:19 +00:00
Jim Meyering
83616b114e
(TESTS): Add hash.
2000-05-18 14:26:00 +00:00
Jim Meyering
f01f28a92a
*** empty log message ***
2000-05-18 14:24:58 +00:00
Jim Meyering
ba798c5998
*** empty log message ***
2000-05-18 11:12:39 +00:00
Jim Meyering
aa78add2de
(hash_rehash): Fix a nasty bug: copy the free entry list
...
back, too, since it may have been modified by allocate_entry.
(hash_delete): Rewrite not to use both(!) the assignment operator
and the comma operator in an if-expression.
2000-05-18 11:06:39 +00:00
Jim Meyering
3cf14979b7
*** empty log message ***
2000-05-17 12:21:02 +00:00
Jim Meyering
1ca5f870b6
tweak comment
2000-05-17 12:19:39 +00:00
Jim Meyering
1cd58148cd
*** empty log message ***
2000-05-16 14:42:22 +00:00
Jim Meyering
a4f0b7b42e
<sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
...
Remove; no longer needed.
"quotearg.h": Add include.
(file_name): Do not bother to explicitly initialize to NULL; it's less
efficient on some hosts.
(close_stdout_status): Remove test as to whether stdout was already
closed; it breaks for the case "echo x | sort >&-".
Quote file name colons.
Do not assume that _("write error") lacks format strings.
2000-05-16 14:36:55 +00:00
Jim Meyering
71f60a998c
*** empty log message ***
2000-05-15 20:42:08 +00:00
Jim Meyering
f13c5ee9ce
(do_link): Use complete strings in diagnostics so they
...
are easier to translate. Reported by Michel Robitaille.
(main): Drop support for the case in which S_ISLNK wasn't defined.
It was broken in any case.
2000-05-15 20:41:52 +00:00
Jim Meyering
6385fbd99a
*** empty log message ***
2000-05-15 10:22:01 +00:00
Jim Meyering
73417841eb
(close_stdout_set_file_name): Declare.
2000-05-15 10:21:56 +00:00
Jim Meyering
dba50eec49
(close_stdout_set_file_name): New function.
...
(close_stdout_status): Use new file-scoped global.
Return right away if fstat says the stdout file descriptor is invalid.
2000-05-15 10:21:25 +00:00
Jim Meyering
3400cc7f78
.
2000-05-15 08:00:19 +00:00
Jim Meyering
3c5405d298
*** empty log message ***
2000-05-15 07:18:44 +00:00
Jim Meyering
be72ac078c
Set LC_ALL to `C' to avoid failure when the
...
current locale is not C (POSIX). From Matthew Clarke.
2000-05-15 07:18:38 +00:00
Jim Meyering
6d38725e21
*** empty log message ***
2000-05-15 07:18:17 +00:00
Jim Meyering
4e5d2ac6d2
*** empty log message ***
2000-05-15 07:11:30 +00:00
Jim Meyering
cbd2839f1d
(version_etc_copyright): Update the copyright string
...
that goes into all --version output.
2000-05-15 07:11:16 +00:00
Jim Meyering
a3ac01b48d
(test_vector): Skip the %c test on SunOS4 systems.
...
Suggested by Paul Eggert. Reported by Volker Borchert.
2000-05-15 07:08:38 +00:00
Jim Meyering
00df9725bb
*** empty log message ***
2000-05-13 06:51:51 +00:00
Jim Meyering
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
47827e2ec2
Include closeout.h.
...
(usage): Don't call close_stdout here.
(close_stdout_wrapper): New, kludgey, function and file-scoped global.
(main): Register it with atexit.
2000-05-13 06:46:55 +00:00
Jim Meyering
68c6a5d828
*** empty log message ***
2000-05-12 22:39:10 +00:00
Jim Meyering
30c412049f
Detect and report write failure of --help/--version.
2000-05-12 22:38:58 +00:00
Jim Meyering
f2d53500ae
*** empty log message ***
2000-05-12 20:40:47 +00:00
Jim Meyering
fc64ba37d4
(copy_internal): Fix force and interactive tests.
2000-05-12 20:40:39 +00:00
Jim Meyering
a5c02a198b
Unlike for mv, -i doesn't cancel the effect of -f
...
and -f doesn't cancel the effect of -i.
(main) ['f']: Don't reset `x.interactive'.
['i']: Don't reset `x.force'.
2000-05-12 20:39:34 +00:00