summaryrefslogtreecommitdiff
path: root/src/du.c
AgeCommit message (Collapse)Author
1995-02-23(restore_cwd): Test whether fchdir return value is non-zero, not negative.Jim Meyering
Be consistent!
1995-02-23(save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurredJim Meyering
because cwd->desc was uninitialed. (restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition of fchdir. Both from Bruno Haible.
1995-02-21(count_entry): Fix bug in polarity of safe-stat status test.Jim Meyering
1995-02-21(save_cwd, restore_cwd): New functions.Jim Meyering
(main): Use them instead of in-line versions. (count_entry): Use them here instead of relying on chdir ("..") -- but only when necessary. Before, with --dereference (-L), traversing a symlink caused failure because chdir ("..") didn't work as expected. Reported by Bruno Haible.
1995-01-27Rename SAFE_STAT and SAFE_LSTAT to lower case names.Jim Meyering
1994-12-27Include "error.h" rather than simply declaring `void error ();'.Jim Meyering
1994-12-03(du_files): Handle very low-probability fchdir failure (when errno != 0Jim Meyering
&& errno != EINVAL).
1994-12-03(du_files): Variable name changes.Jim Meyering
1994-12-03(du_files): Work around SunOS restriction that fchdir doesn't work whenJim Meyering
accounting is enabled -- modelled after djm's find.c mods.
1994-10-27.Jim Meyering
1994-10-20merge with 3.9pJim Meyering
1994-10-02.Jim Meyering
1994-08-19merge with 3.9fJim Meyering
1994-08-19.Jim Meyering
1994-07-30merge with 3.9eJim Meyering
1994-07-30.Jim Meyering
1994-07-02(main): Initialize cwd_only in first two statements, rather than as partJim Meyering
of the declaration. The latter evoked an error from /bin/cc of HPUX 9.01.
1994-06-18(count_entry): Print "/" instead of "".Jim Meyering
1994-01-29.Jim Meyering
1994-01-29.Jim Meyering
1993-10-19merge with 3.8.4kJim Meyering
1993-10-18add newline back, but only for --help outputJim Meyering
1993-10-18Change `fprintf (stdout' to `printf ('.Jim Meyering
1993-10-18remove extra newline in usage messageJim Meyering
1993-10-09merge with 3.8.3eJim Meyering
1993-10-08merge with 3.8.3dJim Meyering
1993-10-06merge with 3.8.3bJim Meyering
1993-10-06merge with 3.8.3aJim Meyering
1993-08-05merge with 3.8.1Jim Meyering
1993-05-22merge with 3.5.5Jim Meyering
1993-05-06merge with 3.5.2Jim Meyering
1993-04-04(usage): Mention --help and --version.Jim Meyering
(main): Handle flag_help and flag_version before checking for invocation errors.
1993-04-02Add --help and --version options.Jim Meyering
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-09Declared lots of external functions and variables static.Jim Meyering
Made several statically-initialized arrays `const.'
1992-11-01Give most file-scope variables the static attribute.Jim Meyering
1992-10-31Initial revisionJim Meyering