From: Jim Meyering Date: Fri, 19 Aug 1994 22:42:59 +0000 (+0000) Subject: merge with 3.9f X-Git-Tag: textutils-1_12_1~626 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da13561d3d4454ccba40e7b9fa836302717b2321;p=thirdparty%2Fcoreutils.git merge with 3.9f --- diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 2cdf1b4b7c..4ab45a0949 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 707b8d43d2..0a2a165154 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;