1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00
Commit Graph

14206 Commits

Author SHA1 Message Date
Jim Meyering d14b4f476c *** empty log message *** 2003-01-07 15:59:48 +00:00
Jim Meyering 06ed252866 *** empty log message *** 2003-01-07 15:54:53 +00:00
Jim Meyering 819147ade4 (TESTS): Add not-owner. 2003-01-07 15:36:17 +00:00
Jim Meyering 6068858986 *** empty log message *** 2003-01-07 15:34:51 +00:00
Jim Meyering 6580a55aeb Remove the test for non-owner diagnostic.
Now, this tests only the nonexistent-directory diagnostic.
2003-01-07 15:34:34 +00:00
Jim Meyering 8586d4652e New test, mostly extracted from fail-diag. 2003-01-07 15:34:20 +00:00
Jim Meyering 0d07d1b2b7 *** empty log message *** 2003-01-07 14:44:54 +00:00
Jim Meyering 84cdbe6529 Fix typo: s/ld/ls/. 2003-01-07 14:44:45 +00:00
Jim Meyering 72d00a1c57 . 2003-01-07 14:12:30 +00:00
Jim Meyering 6a4d25740c tweak comment 2003-01-07 14:09:37 +00:00
Jim Meyering fbb3b7b80c *** empty log message *** 2003-01-07 14:03:21 +00:00
Jim Meyering e76d578bad Rework so that it may serve to define full_read, too. 2003-01-07 14:03:15 +00:00
Jim Meyering 0f0a65766e Simply #define FULL_READ and include full-write.c. 2003-01-07 14:03:05 +00:00
Jim Meyering 9d89ba4161 2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.

(FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
defined (e.g., a pure POSIX system).
(EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
2003-01-06 13:17:48 +00:00
Jim Meyering 783186bced 2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.

(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
Choose values that are less likely to collide with system fnmatch
options.
2003-01-06 13:17:27 +00:00
Jim Meyering cc334674f6 (libfetish_a_SOURCES): Add full-read.c and full-read.h. 2003-01-06 13:14:55 +00:00
Jim Meyering 685ac06eef . 2003-01-06 13:08:59 +00:00
Jim Meyering dd02096234 Include full_read.h.
(get_fs_usage): Use full_read instead of safe_read.
2003-01-06 13:08:19 +00:00
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