Jim Meyering [Tue, 4 Mar 2003 21:27:34 +0000 (21:27 +0000)]
(restore_cwd): Remove two parameters.
Simplify. Don't call error upon failure. Let callers do that.
(save_cwd): Mention that Irix 5.3 has the same problem as SunOS4
when auditing is enabled. But don't bother updating the #if.
Jim Meyering [Tue, 4 Mar 2003 09:16:35 +0000 (09:16 +0000)]
`df /some/mount-point' no longer hangs when an unrelated hard-mount
is unavailable
[__GLIBC__]: GNU libc's statvfs stats each mount point in
/proc/mounts until it finds one with matching device number. This is
unnecessary when the FILE argument *is* a mount point. No stat call
is necessary in that case. So, disable the statvfs-testing code on
systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
as RedHat bug# 84846.
Jim Meyering [Mon, 3 Mar 2003 07:55:33 +0000 (07:55 +0000)]
(remove_cwd_entries) [!ROOT_CAN_UNLINK_DIRS]: Give an
accurate diagnostic when failing to remove a file owned by some other
user. Reported by Ivo Timmermans via Michael Stone.
This fixes Debian bug# 178471.
Jim Meyering [Sun, 2 Mar 2003 06:09:28 +0000 (06:09 +0000)]
(copy_internal) [un_backup]: When recovering from a
failure to create a hard link, do not remove the entry associating
the source dev/ino with the destination file name.
Jim Meyering [Sat, 1 Mar 2003 21:20:57 +0000 (21:20 +0000)]
(print_header): Don't embed spaces in a separate `Type'
header string. Instead, put `Filesystem' and `Type' headers in the
same string, so translators can use horizontal space as needed.
Jim Meyering [Mon, 24 Feb 2003 09:58:02 +0000 (09:58 +0000)]
Include <search.h>.
(struct known_object): Define.
(object_compare, add_object, find_object): New functions, like
those in ftw.c.
(fts_open): Initialize new member.
(fts_close): Free memory allocated for new member.
(fts_stat): Detect a cycle in O(logN) time per directory processed.
Jim Meyering [Mon, 24 Feb 2003 09:09:42 +0000 (09:09 +0000)]
[HAVE_CONFIG_H]: Include <config.h>.
Conditionalize inclusion of <sys/param.h>.
Conditionalize inclusion of <include/sys/stat.h> vs <sys/stat.h>.
Include autoconf-recommended block of dirent/NAMELEN-related
definitions and includes. Use NAMLEN throughout, rather than
_D_EXACT_NAMLEN.
[_LIBC] (close, closedir, fchdir, open, opendir): Define.
[_LIBC] (readdir, tdestroy, tfind, tsearch): Define.
Remove `__' prefix from all uses of the above. This will help
to merge *BSD changes.
[!_LIBC] (internal_function): Define.
[! _LIBC && ! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define lstat.
(__set_errno): Define if not already defined.
Jim Meyering [Mon, 24 Feb 2003 08:27:59 +0000 (08:27 +0000)]
(fts_open): If fts_alloc returns NULL, don't dereference it.
(fts_read): If fts_safe_changedir fails because it is not
able to chdir into a subdirectory, then inform the caller.
Jim Meyering [Sat, 22 Feb 2003 16:52:36 +0000 (16:52 +0000)]
(beta, major): New targets. Remove `release'.
Put them all together on a line.
Pass the release type (via RELEASE_TYPE envvar) to the MAKE
invocation of `announcement'.
(announcement): Invoke announce-gen with --release-type=$RELEASE_TYPE.