Jim Meyering
a66b8da8d5
*** empty log message ***
2003-01-06 13:05:24 +00:00
Jim Meyering
b9ba08e368
(strdup): Remove unused declaration.
2003-01-06 13:04:50 +00:00
Jim Meyering
a7bed0741a
(get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
2003-01-06 13:02:33 +00:00
Jim Meyering
d509325269
(utime_null): No need to call ftruncate if the file was
...
nonempty. Patch by Bruno Haible.
(utime_null): Use SAFE_READ_ERROR.
2003-01-06 12:58:35 +00:00
Jim Meyering
e7ad638593
*** empty log message ***
2003-01-04 10:51:46 +00:00
Jim Meyering
7de3755878
Update copyright date.
2003-01-04 10:51:31 +00:00
Jim Meyering
79ea5a059c
(TESTS): Add no-deref.
2003-01-04 10:46:56 +00:00
Jim Meyering
2076d0231d
.
2003-01-04 10:45:42 +00:00
Jim Meyering
dc90551359
*** empty log message ***
2003-01-04 10:36:24 +00:00
Jim Meyering
7a1c2309c2
*** empty log message ***
2003-01-04 10:35:13 +00:00
Jim Meyering
a2b9cb05b7
Remove use of PARAMS.
2003-01-04 10:34:59 +00:00
Jim Meyering
a6b5021004
Remove use of PARAMS.
2003-01-04 10:33:01 +00:00
Jim Meyering
6df04c9288
Remove use of PARAMS.
2003-01-04 10:32:21 +00:00
Jim Meyering
83593d5f3a
*** empty log message ***
2003-01-04 10:08:07 +00:00
Jim Meyering
8b6b22bcef
rm could be tricked into mistakenly reporting a cycle.
...
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.
When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include <setjmp.h>
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.
* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
2003-01-04 10:07:44 +00:00
Jim Meyering
e2b894c771
(struct dev_ino): Remove declaration.
2003-01-04 09:53:20 +00:00
Jim Meyering
a3e6d3aa63
Don't include trailing /. in diagnostics about directories.
...
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
2003-01-04 09:45:54 +00:00
Jim Meyering
b09da5c9d0
(remove_cwd_entries): Fix typos in comment.
2003-01-04 09:42:53 +00:00
Jim Meyering
2432611646
*** empty log message ***
2003-01-04 09:41:35 +00:00
Jim Meyering
818c25f686
(struct dirstack_state): Define.
...
To be used in place of these file-scoped globals ...
(dir_stack, len_stack, Active_dir): Remove globals.
(ds_init, ds_free): New functions.
(full_filename): Define.
(full_filename_): Rename from full_filename.
Begin to make AD_* functions more generic.
(AD_push_initial): Don't set status to RM_OK here.
(AD_push): Likewise.
(AD_INIT_OTHER_MEMBERS): Define.
(remove_dir): Define the `status' member manually after each
call to AD_push or AD_push_initial.
2003-01-04 09:41:24 +00:00
Jim Meyering
7e4c16df3d
(TESTS): Add cycle.
2003-01-04 09:09:48 +00:00
Jim Meyering
c146a76b5d
Remove trailing /. from diagnostic.
2003-01-04 09:03:45 +00:00
Jim Meyering
874f367c0a
Enable this test -- now that we have the --presume-input-tty option.
2003-01-04 09:03:02 +00:00
Jim Meyering
432a5017a2
rm could be tricked into mistakenly reporting a cycle
2003-01-04 09:01:04 +00:00
Jim Meyering
5a0e8b1ab1
*** empty log message ***
2003-01-04 08:59:19 +00:00
Jim Meyering
10a0b7c14d
(check-misc): New rule, to ensure that no more
...
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.
2003-01-04 08:59:15 +00:00
Jim Meyering
33ca4e1f5a
[S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
...
They're already defined in sys2.h.
2003-01-04 08:58:12 +00:00
Jim Meyering
fd5d4e6d54
remove blank line
2003-01-04 08:55:30 +00:00
Jim Meyering
1cf764991f
(count_entry) [S_ISLNK]: Don't define.
...
It's already defined in sys2.h.
2003-01-04 08:55:19 +00:00
Jim Meyering
a4efa35cd7
[S_ISLNK]: Don't define. It's already defined in sys2.h.
2003-01-04 08:44:11 +00:00
Jim Meyering
9434608b2b
.
2003-01-04 08:42:26 +00:00
Jim Meyering
0bce0bb6f4
*** empty log message ***
2003-01-03 21:38:33 +00:00
Jim Meyering
08cf9aee8b
Add copyright.
...
(AUTHORS): I suppose I've written it.
2003-01-03 21:38:27 +00:00
Jim Meyering
8256faecd8
*** empty log message ***
2003-01-03 21:34:16 +00:00
Jim Meyering
d45f740edc
(false.c): Make the generated file be read-only.
2003-01-03 21:34:06 +00:00
Jim Meyering
8cce263649
.
2003-01-03 21:05:51 +00:00
Jim Meyering
d517c8fa79
(do_copy): Tweak diagnostic to be consistent with the one
...
from mv: s/missing file arguments/missing file argument/.
With --target-directory=DIR, cp and mv work with a single file argument.
Reported by Karl Berry.
2003-01-03 19:34:22 +00:00
Jim Meyering
820fd625f3
*** empty log message ***
2003-01-03 19:33:59 +00:00
Jim Meyering
1b6b9abd55
Include "dev-ino.h".
...
[struct dev_ino]: Remove declaration.
2003-01-03 19:33:52 +00:00
Jim Meyering
8e4c2127af
*** empty log message ***
2003-01-03 19:31:10 +00:00
Jim Meyering
fe688e3d91
(libfetish_a_SOURCES): Add cycle-check.c, cycle-check.h, and dev-ino.h.
2003-01-03 19:31:01 +00:00
Jim Meyering
fab52f550d
.
2003-01-03 19:30:29 +00:00
Jim Meyering
5ed7d34ed8
*** empty log message ***
2002-12-21 14:53:26 +00:00
Jim Meyering
e3c1118ce1
Generate MML-formatted announcement.
...
This makes it a *lot* harder to send stale MD5/SHA1 signatures.
2002-12-21 14:53:18 +00:00
Jim Meyering
317fa67e1e
.
2002-12-21 14:50:45 +00:00
Jim Meyering
3156fcf62a
*** empty log message ***
2002-12-21 14:42:02 +00:00
Jim Meyering
374d2948bc
.
2002-12-21 14:41:58 +00:00
Jim Meyering
bb42dae7f2
*** empty log message ***
2002-12-20 20:10:59 +00:00
Jim Meyering
f331e1389c
(touch): Change the wording of a diagnostic so
...
that it makes sense both when the file exists and when it doesn't.
2002-12-20 20:10:48 +00:00
Jim Meyering
5fcf19366e
.
2002-12-19 20:30:39 +00:00