Commit Graph
18404 Commits
Author SHA1 Message Date
Jim Meyering 2e83808dd6 Fix bug where "rm" gave up too easily, reported by Dan Jacobsen in
<http://mail.gnu.org/archive/html/bug-coreutils/2004-05/msg00013.html>.

(remove_entry): Check for errno values like ENOENT
that show the file cannot be directory, instead of for errno
values like EPERM that show the file might be a directory.  This
is necessary because, when a single unlink() call has multiple
reasons to fail, it can set errno to any of those reasons; it's
only the rare errno value like ENOENT that excludes all the other
possible reasons to fail even when the file is a directory.
(remove_cwd_entries): Don't attempt chdir if the file is known
to not be a directory.
(remove_dir): Use the same method that remove_cwd_entries uses
(for some reason they differed).  Don't assert that saved_errno
must be EPERM; it might be just about anything.
2004-05-08 12:49:22 +00:00
Jim Meyering 198dc407d3 New file; check for the above fix. 2004-05-08 12:47:23 +00:00
Jim Meyering 0ce65fc205 Update from gnulib.
(obstack_finish): Rename local: s/value/__value/.
2004-05-07 06:48:31 +00:00
Jim Meyering 72462df0d2 Update from gnulib.
(_): Define only if not already defined.
2004-05-07 06:48:12 +00:00
Jim Meyering f0271be19f *** empty log message *** 2004-05-06 15:35:13 +00:00
Jim Meyering 89bba9158d (main): Use xnmalloc, rather than xmalloc. 2004-05-06 14:51:20 +00:00
Jim Meyering e93ae52456 (main): Use xnmalloc, rather than xmalloc. 2004-05-06 14:50:17 +00:00
Jim Meyering 4d9d9f4d02 (list_entries_users): Use xnmalloc, rather than xmalloc. 2004-05-06 14:49:32 +00:00
Jim Meyering 433aacf5c6 (do_wipefd): Use xnmalloc, rather than xmalloc. 2004-05-06 14:48:07 +00:00
Jim Meyering 1c4154dbb0 (xgetgroups): Use variable name, rather than type name in computing buffer
size for xnmalloc.
2004-05-06 14:46:00 +00:00
Jim Meyering 76ef73f50a (xgetgroups): Use xnmalloc, rather than xmalloc.
Don't add `1' to the buffer size (it was to protect against malloc
implementations that fail to allocate a buffer of size zero).
That is no longer necessary, since we use a malloc wrapper
on such systems.
2004-05-06 14:43:31 +00:00
Jim Meyering 782b73c514 (main): Use xnmalloc, rather than xmalloc. 2004-05-06 14:24:50 +00:00
Jim Meyering 94c2794761 (elide_tail_bytes_pipe): Use xnmalloc, rather than xmalloc. 2004-05-06 14:24:16 +00:00
Jim Meyering 4de12cc012 (get_input_fstatus): Use xnmalloc, rather than xmalloc. 2004-05-06 14:23:08 +00:00
Jim Meyering 1956f215e1 . 2004-05-04 11:36:13 +00:00
Jim Meyering c9316ddd85 *** empty log message *** 2004-05-04 07:26:41 +00:00
Jim Meyering 3145fdd1ed (show_disk, show_point): If several filesystems are
mounted on the same mount point, prefer the last one, not the first.
Problem reported by Christian Jones in
<http://mail.gnu.org/archive/html/bug-coreutils/2004-04/msg00200.html>.
(show_disk): Remove unused statp arg.  Return bool, not int.
(show_point): Rewrite to avoid gotos.  Use the same algorithm
for lofs and dummies for each pass through the mount table,
rather than subtly different algorithms (which are probably
inadvertent).
2004-05-04 07:26:33 +00:00
Jim Meyering b9c20c62fb *** empty log message *** 2004-05-03 12:50:32 +00:00
Jim Meyering bf006459d8 (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown. 2004-05-03 12:50:24 +00:00
Jim Meyering b0ee1e8b78 *** empty log message *** 2004-05-03 11:52:46 +00:00
Jim Meyering 752efcbdb0 *** empty log message *** 2004-05-03 11:52:39 +00:00
Jim Meyering edb4b69e61 (EXTRA_DIST): Add m4/ChangeLog, now that we no longer have m4/Makefile*. 2004-05-03 11:52:33 +00:00
Jim Meyering 95adc0cbfc *** empty log message *** 2004-05-03 11:50:52 +00:00
Jim Meyering 617884e704 . 2004-05-03 11:07:59 +00:00
Jim Meyering 171bf0969a Temporary work-around for the problem reported here:
http://sources.redhat.com/ml/automake/2004-05/msg00023.html
(FIXME: the number `23' may not be accurate)

(AM_GNU_GETTEXT): Don't require AM_INTL_SUBDIR.
(AM_INTL_SUBDIR): Comment out definition.
2004-05-03 11:03:14 +00:00
Jim Meyering de0d33afc8 *** empty log message *** 2004-05-01 16:45:58 +00:00
Jim Meyering 90158b2fda Remove unused file. 2004-05-01 16:45:39 +00:00
Jim Meyering 5e36b4bd51 Remove unused file. 2004-05-01 16:44:31 +00:00
Jim Meyering fbff21277b Remove unused file. 2004-05-01 16:43:46 +00:00
Jim Meyering 489cf2a649 Remove unused file. 2004-05-01 16:41:43 +00:00
Jim Meyering f358ae5a46 Remove unused file. 2004-05-01 16:41:02 +00:00
Jim Meyering 1a7c6d7ac2 Remove unused file. 2004-05-01 16:39:48 +00:00
Jim Meyering 8d4ea07eb8 Remove file. This is now part of mktime.m4. 2004-05-01 16:38:12 +00:00
Jim Meyering fb8bb7dda7 . 2004-05-01 16:20:22 +00:00
Jim Meyering 7ba3e328c6 . 2004-05-01 14:42:45 +00:00
Jim Meyering c7edb664e6 *** empty log message *** 2004-05-01 14:42:06 +00:00
Jim Meyering 84990aa0fc (gl_MACROS): Move fchown-checking code to chown.m4. 2004-05-01 14:42:00 +00:00
Jim Meyering 1c473ba843 (gl_PREREQ_CHOWN): Check for fcntl.h.
See if we need an fchown replacement.
(gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
(gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
and use the replacement function if we detect either defect.
2004-05-01 14:41:21 +00:00
Jim Meyering 87cb7bca64 (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
Wrap old code with this conditional.
[CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
function that does not dereference symlinks.
2004-05-01 14:36:29 +00:00
Jim Meyering 83db4e147a When chown or chgrp is modifying the referent of a symlink,
use the chown(2) function, if possible.

(change_file_owner): Don't hard-code the
open/fchown/close kludge here.  Use `chown' instead.
The chown function works just fine on conforming systems.
Other systems now go through the new chown wrapper that
resorts to the old kludge.
2004-05-01 14:33:41 +00:00
Jim Meyering afef52af2f *** empty log message *** 2004-05-01 06:49:01 +00:00
Jim Meyering 27b510575d (change_file_owner): Add a comment. 2004-05-01 06:48:55 +00:00
Jim Meyering 70b9c50903 . 2004-04-29 16:03:21 +00:00
Jim Meyering 094bc55f63 Whoops: s/sc_src_tight_scope/sc_tight_scope/ 2004-04-28 12:42:14 +00:00
Jim Meyering 173f088735 . 2004-04-27 19:01:00 +00:00
Jim Meyering 372762d891 (syntax_table, re_syntax_table): Remove declarations of two unused
variables (they were exposed by the above change).
2004-04-27 18:39:21 +00:00
Jim Meyering 335b993492 Make over 40 global extern variables `static'. 2004-04-27 18:37:14 +00:00
Jim Meyering ee5d9d5b14 (sc_tight_scope): Also check for global variables, (BSS section). 2004-04-27 17:03:58 +00:00
Jim Meyering 74a28492df *** empty log message *** 2004-04-27 16:58:16 +00:00
Jim Meyering 6a9fd0063c Rename to sc_tight_scope.
(syntax-check-rules): Really add it.
2004-04-27 16:58:02 +00:00