Commit Graph
18540 Commits
Author SHA1 Message Date
Jim Meyering bb682cff5e *** empty log message *** 2004-05-30 08:43:42 +00:00
Jim Meyering ca3ad6589a (dosync): Ignore EBADF errors, as IRIX 6.5
fdatasync reports EBADF when syncing (unwritable) directories.
Problem reported by Albert Chin-A-Young in:
http://lists.gnu.org/archive/html/bug-coreutils/2004-05/msg00165.html
2004-05-30 08:43:35 +00:00
Jim Meyering 97930170e8 . 2004-05-29 22:23:31 +00:00
Jim Meyering 6ef34dd010 *** empty log message *** 2004-05-29 22:12:32 +00:00
Jim Meyering c04071591e remove trailing blank 2004-05-29 22:12:15 +00:00
Jim Meyering 21edf06db2 *** empty log message *** 2004-05-29 22:09:00 +00:00
Jim Meyering 0db0459b65 *** empty log message *** 2004-05-29 22:07:06 +00:00
Jim Meyering e6a2492833 (rm_option_init): Initialize new member, 2004-05-29 22:07:03 +00:00
Jim Meyering 56d5c6f7ca (rm_option_init): Initialize new member, x->require_restore_cwd. 2004-05-29 22:06:25 +00:00
Jim Meyering 8f7ac733b9 (struct rm_options) [require_restore_cwd]: New member. 2004-05-29 22:05:26 +00:00
Jim Meyering 9df1cc96e8 *** empty log message *** 2004-05-29 22:05:01 +00:00
Jim Meyering 9c29642d37 rm -r would get a failed assertion when run from an inaccessible
directory and with two or more command line arguments including an
absolute-named directory followed by a relative-named directory.

(struct cwd_state): Define.
(AD_pop_and_chdir): Redesign interface so that a restore_cwd failure
can be detected by the caller.  Instead of returning a malloc'd
directory name, communicate it to caller via a new parameter, and
return an indication of whether restore_cwd failed.  Update caller.
Eliminate an unnecessary call to AC_stack_top.
(remove_dir): Change type of cwd_state parameter to `struct cwd_state'
so we can now communicate to caller whether/how functions like
restore_cwd have failed.  Update caller.
(rm_1): Fail if we've failed to restore the working directory
and the name of the next file to remove is `.'-relative.
(rm): Fail if the require_restore_cwd flag is true and we've
failed to restore the working directory.
2004-05-29 22:04:55 +00:00
Jim Meyering f679d4d08d *** empty log message *** 2004-05-29 22:00:20 +00:00
Jim Meyering c921e46f05 *** empty log message *** 2004-05-29 21:57:31 +00:00
Jim Meyering 38499a7a54 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define. 2004-05-29 21:57:27 +00:00
Jim Meyering db4db904d0 *** empty log message *** 2004-05-29 21:13:17 +00:00
Jim Meyering 4950e06530 (gl_PREREQ_XMALLOC): Require AC_FUNC_CALLOC. 2004-05-29 21:13:15 +00:00
Jim Meyering ebb520fa44 . 2004-05-29 21:12:30 +00:00
Jim Meyering 549e8ff6df Fix typo: use ls -ldo, not ls -ldg. Patch from Albert Chin. 2004-05-29 20:46:43 +00:00
Jim Meyering a07816dc58 *** empty log message *** 2004-05-29 16:53:50 +00:00
Jim Meyering b22cdd3563 (AC_FUNC_CALLOC, _AC_FUNC_CALLOC_IF): New file/macros. 2004-05-29 16:53:45 +00:00
Jim Meyering 11969e0a20 New file. 2004-05-29 16:47:13 +00:00
Jim Meyering 0c5b66e10c (text_buffer_maxend): Remove declarations unused variable. 2004-05-29 11:33:15 +00:00
Jim Meyering 20788a74cb *** empty log message *** 2004-05-28 22:31:38 +00:00
Jim Meyering 70c5c9e8c4 (push_dir): Merge declaration and adjacent assignment into a single statement. 2004-05-28 22:31:26 +00:00
Jim Meyering 6fcceb6b02 tweak a comment 2004-05-28 22:30:40 +00:00
Jim Meyering 4d5eb9f196 *** empty log message *** 2004-05-28 21:39:59 +00:00
Jim Meyering 19387038f5 (AD_mark_helper): Eliminate unnecessary comparison. 2004-05-28 21:39:55 +00:00
Jim Meyering 2f317665ed *** empty log message *** 2004-05-28 21:27:16 +00:00
Jim Meyering 593aea0e97 *** empty log message *** 2004-05-28 21:04:15 +00:00
Jim Meyering bbe6051c33 *** empty log message *** 2004-05-28 21:01:53 +00:00
Jim Meyering 460f685be6 *** empty log message *** 2004-05-22 16:30:11 +00:00
Jim Meyering 3ba72c8b9c (rm): Use free rather than XFREE.
(remove_dir): Use xmalloc, not XMALLOC.
(ds_init): Likewise.
2004-05-22 16:29:20 +00:00
Jim Meyering e5e96abfd2 *** empty log message *** 2004-05-21 14:32:22 +00:00
Jim Meyering 19000dd0f1 (TESTS): Add inaccessible. 2004-05-21 14:32:20 +00:00
Jim Meyering b3d364fc9d *** empty log message *** 2004-05-21 14:28:45 +00:00
Jim Meyering e42baab490 # Ensure that rm works even when run from a directory
# for which the user has no access at all.
2004-05-21 13:59:31 +00:00
Jim Meyering c4083b0a9b *** empty log message *** 2004-05-21 07:50:53 +00:00
Jim Meyering 8492b24cfc update from gnulib 2004-05-21 07:50:27 +00:00
Jim Meyering 80bb79d05b *** empty log message *** 2004-05-21 07:49:01 +00:00
Jim Meyering 610a755701 update from gnulib 2004-05-21 07:48:44 +00:00
Jim Meyering ee2c5f05fd *** empty log message *** 2004-05-21 07:48:32 +00:00
Jim Meyering be5c1f5065 update from gnulib 2004-05-21 07:45:45 +00:00
Jim Meyering 29cb8457bc update from gnulib 2004-05-21 07:44:35 +00:00
Jim Meyering da45f1948e update from gnulib, again 2004-05-21 06:41:51 +00:00
Jim Meyering f40938936d *** empty log message *** 2004-05-21 06:40:36 +00:00
Jim Meyering 3b7026427d Update from gnulib (fix reversed test). 2004-05-21 06:40:31 +00:00
Jim Meyering aa1b76461d . 2004-05-20 11:39:58 +00:00
Jim Meyering 994e9be511 Update from gnulib. 2004-05-20 11:39:54 +00:00
Jim Meyering 142d646e01 *** empty log message *** 2004-05-20 11:37:11 +00:00