Jim Meyering
38fa93be81
*** empty log message ***
2002-04-28 17:29:12 +00:00
Jim Meyering
a1319f687c
(integer_expected_error): Add `const' to paramater
...
declarations to avoid new warning from gcc.
2002-04-28 17:12:53 +00:00
Jim Meyering
059c9672ff
(test_syntax_error): Add `const' to paramater
...
declarations to avoid new warning from gcc.
2002-04-28 17:09:12 +00:00
Jim Meyering
8a2075ba7d
(cycle_check): Add a comment.
2002-04-27 06:46:18 +00:00
Jim Meyering
a6050a7291
(cycle_check): New function containing code factored
...
out of remove_dir. The sole difference is that upon detecting a
cycle, rm now dies unconditionally. Before, in interactive mode,
it would ask the user whether to continue.
(remove_dir): Call cycle_check.
2002-04-27 06:33:08 +00:00
Jim Meyering
d1cf325739
*** empty log message ***
2002-04-25 20:38:20 +00:00
Jim Meyering
6cc8245afb
(usage): Adjust ordering to match that of default output.
2002-04-25 20:38:16 +00:00
Jim Meyering
93066fab51
*** empty log message ***
2002-04-25 20:16:15 +00:00
Jim Meyering
daeef68961
remove comment for reverted change
2002-04-25 19:51:40 +00:00
Jim Meyering
c5e9725e5b
.
2002-04-25 19:47:08 +00:00
Jim Meyering
e94bd40348
.
2002-04-25 18:58:39 +00:00
Jim Meyering
6576e27321
.
2002-04-25 18:58:07 +00:00
Jim Meyering
d29bfd529e
*** empty log message ***
2002-04-25 18:03:30 +00:00
Jim Meyering
e758541f7e
*** empty log message ***
2002-04-25 18:03:07 +00:00
Jim Meyering
0cf2e85eda
*** empty log message ***
2002-04-25 18:02:59 +00:00
Jim Meyering
de9a50b611
Avoid warnings from gcc.
...
Declare input_file and output_file to be `const'.
(skip): Declare `file' parameter to be `const', too.
2002-04-25 18:02:52 +00:00
Jim Meyering
b6dd48b361
*** empty log message ***
2002-04-25 17:14:28 +00:00
Jim Meyering
184edc32ab
*** empty log message ***
2002-04-25 16:40:18 +00:00
Jim Meyering
0199003cf9
Remove hash table, active_dir_map, used to detect directory cycles.
...
Instead, detect them lazily with just O(1) memory.
Suggestion from Andi Kleen.
(is_power_of_two): New function.
(print_nth_dir, make_active_dir_ent): Remove functions.
(hash_active_dir_ent, hash_compare_active_dir_ents): Likewise.
(remove_dir): Check for cycles here, ...
(rm): ... and don't check for cycles here.
(rm): Call fspec_get_full_mode here, rather than
fspec_get_filetype_mode. We want to get the dev/ino earlier, and
at the same time as when we get the file type, to avoid the risk
that an attacker would change e.g. a directory to a symlink before
we record its dev/ino.
2002-04-25 16:40:04 +00:00
Jim Meyering
bbd396f52f
Revert last change.
2002-04-25 16:32:32 +00:00
Jim Meyering
2a15b5cbc4
Revert last change.
2002-04-25 16:31:41 +00:00
Jim Meyering
2dbf41d0d0
*** empty log message ***
2002-04-25 16:01:32 +00:00
Jim Meyering
c80374e8e8
.
2002-04-25 15:40:12 +00:00
Jim Meyering
e53320438b
*** empty log message ***
2002-04-25 15:39:39 +00:00
Jim Meyering
1bb22e3075
Remove ENABLE_NLS-related code.
...
(_, N_) Remove definitions.
Include "gettext.h" instead.
2002-04-25 15:38:17 +00:00
Jim Meyering
fc7d0fef5f
*** empty log message ***
2002-04-24 07:54:51 +00:00
Jim Meyering
b2861672f1
filtered through cppi
2002-04-24 07:54:40 +00:00
Jim Meyering
9cd1ed4307
*** empty log message ***
2002-04-24 07:52:49 +00:00
Jim Meyering
8a054458d4
(INCLUDES): Remove -I../intl.
...
(libfetish_a_SOURCES): Add gettext.h.
2002-04-24 07:52:39 +00:00
Jim Meyering
570703fb5e
*** empty log message ***
2002-04-24 07:50:53 +00:00
Jim Meyering
0b79c81d9d
(jm_PREREQ_HARD_LOCALE): New macro.
...
(jm_PREREQ): Use it.
2002-04-24 07:50:48 +00:00
Jim Meyering
6acdf37888
bump serial # to 9
2002-04-24 07:49:39 +00:00
Jim Meyering
1391eaea5d
Check for these headers: locale.h unistd.h mach/mach.h fcntl.h.
...
Check for this function: setlocale.
2002-04-24 07:49:00 +00:00
Jim Meyering
d3de1d0186
(rm): Call exit with EXIT_FAILURE, not `1'.
2002-04-22 09:42:00 +00:00
Jim Meyering
a15c26266f
*** empty log message ***
2002-04-22 07:36:00 +00:00
Jim Meyering
c32c344dd6
(main): Adjust caller of remove_init.
2002-04-22 07:35:54 +00:00
Jim Meyering
e305ef0fa8
(do_move): Adjust caller of remove_init.
2002-04-22 07:35:41 +00:00
Jim Meyering
f1014ac7cc
(remove_init): Adjust prototype.
2002-04-22 07:35:32 +00:00
Jim Meyering
8fd6feded9
(rm, remove_init, remove_fini): Don't use or even
...
initialize the active_dir_map unless --recursive (-r) is specified.
2002-04-22 07:35:20 +00:00
Jim Meyering
c175e3f6c8
update framework
2002-04-20 14:49:46 +00:00
Jim Meyering
73f2d11007
update framework
2002-04-19 22:57:04 +00:00
Jim Meyering
f2bb69ebb0
Use this:
...
(exit $fail); exit
not this:
exit $fail
2002-04-19 22:50:36 +00:00
Jim Meyering
0129239343
upgrade to use better framework
2002-04-19 22:41:59 +00:00
Jim Meyering
92d76e1e92
upgrade to use better framework
2002-04-19 22:39:05 +00:00
Jim Meyering
dc2f3bc5e4
*** empty log message ***
2002-04-19 22:36:11 +00:00
Jim Meyering
1a35394a57
upgrade to use better framework
2002-04-19 22:36:03 +00:00
Jim Meyering
2b5e6e4835
clean-up
2002-04-19 21:59:57 +00:00
Jim Meyering
306c8e8b4f
Lots of clean-up:
...
E.g.,
(exit $fail); exit
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
2002-04-19 21:55:30 +00:00
Jim Meyering
3cc80a4390
*** empty log message ***
2002-04-19 21:54:27 +00:00
Jim Meyering
ff015c529a
*** empty log message ***
2002-04-19 21:53:42 +00:00