summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-06-27(change_dir_group): Don't set errno beforeJim Meyering
invoking savedir, and assume that errno is nonzero if savedir fails.
2000-06-27(show_dev): Round disk usage percentage up, not to nearest value.Jim Meyering
Use integer arithmetic if it's easy. Fix bug when converting twos-complement negative values to floating point.
2000-06-26`id -Gn' (invoked by groups) would fail without giving a diagnosticJim Meyering
on malconfigured systems. (print_user): Give a diagnostic if number->name lookup fails. (print_group): Likewise.
2000-06-25(copy_internal): Don't return return immediately after aJim Meyering
failed copy_dir call -- otherwise, the failure to read a single file in a source directory would cause the containing destination directory not to have owner/perms set properly. Reported by Piotr Kwapulinski.
2000-06-24tweak copyrightJim Meyering
2000-06-24(sysv_sum_file): Avoid overflowing 32-bit accumulatorJim Meyering
on files larger than 256 MB.
2000-06-22(main): Correct a comment.Jim Meyering
2000-06-21(getstr): Remove private (and out of date) version of this function.Jim Meyering
(cut_fields): Adjust caller to use the just-extended one in ../lib.
2000-06-21(valid_options): Don't segfault on `stty erase -'.Jim Meyering
2000-06-20(main): Fix off-by-argc test, so +N-style options are recognized once again.Jim Meyering
Reported by Geoff Keunning. Fix typo in diagnostic: s/compare/skip/.
2000-06-16(print_size): Round disk usage up.Jim Meyering
2000-06-16(print_dir, gobble_file, print_long_format, print_file_name_and_frills):Jim Meyering
Round disk usage up.
2000-06-16(df_readable): New arg for rounding style.Jim Meyering
Round negative numbers correctly. (show_dev): Round disk usage up and disk free space down.
2000-06-16(copy_reg): Give a slightly better diagnostic.Jim Meyering
2000-06-12(main): Give the correct diagnostic when using theJim Meyering
--target-dir=DIR option, but no arguments. Patch from Michael Stone. Reported by herbert@gondor.apana.org.au.
2000-06-04(show_point) [HAVE_REALPATH && !HAVE_RESOLVEPATH]:Jim Meyering
Cast undeclared `realpath' to char* to avoid warning.
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering
2000-06-03(usage): Document that -v is a synonym for --verbose.Jim Meyering
2000-05-29Allow `cp -d -u' to copy one symlink onto another that's identical.Jim Meyering
(copy_internal): Change the || to ^ in the big sameness test, so copying one symlink onto another, identical one doesn't fail here. If the symlink call fails, don't report the failure if the destination already exists and is a symlink pointing to the proper name.
2000-05-27Arrange to call close_stdout upon exit.Jim Meyering
Don't close stdout explicitly. (usage): Add missing backslash at end of line. (write_header): Remove now-unused COMMENT parameter. Update all callers.
2000-05-27Arrange to call close_stdout upon exit.Jim Meyering
Don't close stdout explicitly. Replace uses of global constant, output_desc, with uses of STDOUT_FILENO.
2000-05-25(close_stdout_wrapper): Don't dereference NULL pointer.Jim Meyering
From Bob Proulx.
2000-05-24(head_file): Use STDIN_FILENO in place of `0'.Jim Meyering
(main): Likewise.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
(but set exit status and file name, too)
2000-05-20add format args to match new %lu directivesJim Meyering
2000-05-20tweak warning diagnosticJim Meyering
2000-05-20(struct File_spec) [have_device, st_dev]: New membersJim Meyering
2000-05-20Save device number as well as inode number for each directory.Jim Meyering
(struct active_dir_ent) [st_dev]: New member. [st_ino]: Rename from `inum'. (make_active_dir_ent) [device]: New parameter. (hash_compare_active_dir_ents): Compare using SAME_INODE macro. (fspec_init_common): New function, factored out. (fspec_init_file): Initialize have_device member. (fspec_get_full_mode): Remove parameter. Update caller. Set have_device and st_dev members.
2000-05-18(rm): Combine adjacent fputc and fprintf.Jim Meyering
2000-05-18remove some parens from some cpp linesJim Meyering
2000-05-18(remove_dir): Detect (and fail upon) attempt to subvert a running `rm -r'.Jim Meyering
Reported by Morten Welinder.
2000-05-17tweak commentJim Meyering
2000-05-15(do_link): Use complete strings in diagnostics so theyJim Meyering
are easier to translate. Reported by Michel Robitaille. (main): Drop support for the case in which S_ISLNK wasn't defined. It was broken in any case.
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-13Include closeout.h.Jim Meyering
(usage): Don't call close_stdout here. (close_stdout_wrapper): New, kludgey, function and file-scoped global. (main): Register it with atexit.
2000-05-12Detect and report write failure of --help/--version.Jim Meyering
2000-05-12(copy_internal): Fix force and interactive tests.Jim Meyering
2000-05-12Unlike for mv, -i doesn't cancel the effect of -fJim Meyering
and -f doesn't cancel the effect of -i. (main) ['f']: Don't reset `x.interactive'. ['i']: Don't reset `x.force'.
2000-05-12(string_to_integer): Restrict base to 10.Jim Meyering
2000-05-12New option: --first-onlyJim Meyering
(anonymous enum) [CONVERT_FIRST_ONLY_OPTION]: Define. (long_options): Add `first-only'. (main): Handle new option.
2000-05-11(usage): Don't call close_stdout_status directly,Jim Meyering
since that didn't cover --version output. (main): Instead, call close_stdout_set_status and arrange to call close_stdout via atexit.
2000-05-11(usage): Don't call close_stdout_status directly,Jim Meyering
since that didn't cover --version output. (main): Instead, call close_stdout_set_status and arrange to call close_stdout via atexit.
2000-05-11(usage): Don't call close_stdout directly, since thatJim Meyering
didn't cover --version output. (main): Arrange to call close_stdout via atexit, instead.
2000-05-09Include sys/types.h in shred.c before includingJim Meyering
sys/stat.h or system.h. From John David Anglin.
2000-05-09back out last change -- the two should be separateJim Meyering