]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
merge with 3.9f
authorJim Meyering <jim@meyering.net>
Fri, 19 Aug 1994 22:42:59 +0000 (22:42 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 19 Aug 1994 22:42:59 +0000 (22:42 +0000)
old/fileutils/ChangeLog
src/du.c

index 2cdf1b4b7cadead80f2b95a97285b2f0e7914d4a..4ab45a0949242581a831fc43ea188e39f695476c 100644 (file)
@@ -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.
 
index 707b8d43d2c2a8ab9a38fe954dcb9d24ef744238..0a2a1651540bab9606ef1a99abdcb28da069ca77 100644 (file)
--- 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;