summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering-4/+4
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering-4/+4
2000-06-03(usage): Document that -v is a synonym for --verbose.Jim Meyering-1/+1
2000-05-29Allow `cp -d -u' to copy one symlink onto another that's identical.Jim Meyering-3/+23
(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-10/+9
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-19/+27
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-1/+1
From Bob Proulx.
2000-05-24(head_file): Use STDIN_FILENO in place of `0'.Jim Meyering-3/+2
(main): Likewise.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-49/+78
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-3/+3
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-6/+4
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-0/+3
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering-2/+6
(but set exit status and file name, too)
2000-05-20add format args to match new %lu directivesJim Meyering-0/+2
2000-05-20tweak warning diagnosticJim Meyering-4/+4
2000-05-20(struct File_spec) [have_device, st_dev]: New membersJim Meyering-1/+3
2000-05-20Save device number as well as inode number for each directory.Jim Meyering-50/+69
(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-2/+1
2000-05-18remove some parens from some cpp linesJim Meyering-2/+2
2000-05-18(remove_dir): Detect (and fail upon) attempt to subvert a running `rm -r'.Jim Meyering-1/+33
Reported by Morten Welinder.
2000-05-17tweak commentJim Meyering-1/+1
2000-05-15(do_link): Use complete strings in diagnostics so theyJim Meyering-18/+10
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-43/+40
2000-05-13Include closeout.h.Jim Meyering-1/+18
(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-7/+8
2000-05-12(copy_internal): Fix force and interactive tests.Jim Meyering-2/+2
2000-05-12Unlike for mv, -i doesn't cancel the effect of -fJim Meyering-2/+0
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-3/+3
2000-05-12New option: --first-onlyJim Meyering-0/+18
(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-6/+6
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-3/+3
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-3/+6
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-0/+1
sys/stat.h or system.h. From John David Anglin.
2000-05-09back out last change -- the two should be separateJim Meyering-1/+3
2000-05-09Include sys/types.h in shred.c before includingJim Meyering-3/+1
sys/stat.h or system.h. From John David Anglin.
2000-05-09(case_GETOPT_VERSION_CHAR): Don't call close_stdout.Jim Meyering-1/+0
2000-05-07Include "closeout.h".Jim Meyering-0/+2
(usage): Call close_stdout just before exit.
2000-05-07Include "closeout.h".Jim Meyering-4/+4
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-2/+2
(main): Call atexit with close_stdout.
2000-05-07(usage): Call close_stdout_status.Jim Meyering-1/+2
2000-05-07Include "closeout.h".Jim Meyering-0/+3
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-3/+10
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-1/+4
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-4/+5
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-2/+2
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-1/+4
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-1/+4
(main): Call atexit with close_stdout.
2000-05-07Include "closeout.h".Jim Meyering-2/+8
(main): Call atexit with close_stdout.
2000-05-07(usage): Call close_stdout_status.Jim Meyering-0/+1
2000-05-07Include "closeout.h".Jim Meyering-2/+8
(main): Call atexit with close_stdout.