summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-08-19 22:42:59 +0000
committerJim Meyering <jim@meyering.net>1994-08-19 22:42:59 +0000
commitda13561d3d4454ccba40e7b9fa836302717b2321 (patch)
tree0ffd6edc724eac66a72b473667ed8e438cc8712a
parent8a5d6318e79ce211a4f83826b4845cbb7d9ba502 (diff)
downloadcoreutils-da13561d3d4454ccba40e7b9fa836302717b2321.tar.xz
merge with 3.9f
-rw-r--r--old/fileutils/ChangeLog15
-rw-r--r--src/du.c2
2 files changed, 16 insertions, 1 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog
index 2cdf1b4b7..4ab45a094 100644
--- a/old/fileutils/ChangeLog
+++ b/old/fileutils/ChangeLog
@@ -1,5 +1,20 @@
+Thu Aug 18 11:41:16 1994 Jim Meyering (meyering@comco.com)
+
+ * du.c (du_files) [HAVE_FCHDIR]: Use open (".", ...) and fchdir
+ instead of xgetcwd and chdir. Otherwise, running du in a subdirectory
+ of an unreadable directory would fail because xgetcwd fails.
+ * configure.in (AC_HAVE_FUNCS): Add fchdir. AIX-2.3 (for one)
+ doesn't have it.
+
+ * lib/Makefile.in (DISTFILES): Include getdate.c and posixtim.c
+ so one doesn't need $(YACC).
+ Add dependencies on safe-stat.h.
+
Sat Jul 30 08:08:02 1994 Jim Meyering (meyering@comco.com)
+ * du.c (main): Don't initialize automatic array CWD_ONLY in declaration.
+ Some compilers don't allow that.
+
* backupfile.c [DIRENT]: Remove spurious `|| defined(_POSIX_VERSION)'.
* savedir.c: Ditto.
diff --git a/src/du.c b/src/du.c
index 707b8d43d..0a2a16515 100644
--- a/src/du.c
+++ b/src/du.c
@@ -234,7 +234,7 @@ main (argc, argv)
{
int c;
char *cwd_only[2];
-
+
cwd_only[0] = ".";
cwd_only[1] = NULL;