summaryrefslogtreecommitdiff
path: root/src/rmdir.c
AgeCommit message (Collapse)Author
2004-01-22(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
(remove_parents): Don't set 'fail' to a negative number. (main): Avoid integer overflow when seeing whether errors occurred.
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-06-17(main): Call initialize_main.Jim Meyering
2002-09-22Include "dirname.h", for declaration of strip_trailing_slashes.Jim Meyering
2002-09-20(remove_parents): Strip trailing slashes.Jim Meyering
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2000-07-30Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-06(EEXIST): Remove now-unused definition.Jim Meyering
(ENOTEMPTY): Likewise. (errno_rmdir_non_empty): Rewrite to use RMDIR_ERRNO_NOT_EMPTY, which is determined by the autoconf test in m4/rmdir-errno.m4..
1999-12-30(remove_parents, main): Don't pass errno to errorJim Meyering
when printing "removing directory" message. Failure of rmdir is handled elsewhere.
1999-12-09(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.Jim Meyering
1999-11-20(errno_rmdir_non_empty): New function to encapsulate errno comparison.Jim Meyering
(remove_parents): Use it. (main): Use it.
1999-11-07add missing \n\Jim Meyering
1999-11-07(remove_parents): Use the correct testJim Meyering
(same as in main) in handling --ignore-fail-on-non-empty. From Michael Stone.
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-08-30(longopts): Use corresponding short-option characterJim Meyering
in place of `1', and `NULL' in place of pointer in initialization.
1998-07-26(main): rmdir fails with EEXIST on some systems.Jim Meyering
Handle that, so --ignore-fail-on-non-empty works. (EEXIST): Define to zero if not defined. (ENOTEMPTY): Likewise.
1998-03-13(remove_parents): Be consistent with documentation ofJim Meyering
--verbose option and with remove.c in saying `removing...' before the operation is attempted. (main): Likewise. Suggestions from Santiago Vila.
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1997-10-07update bug-reporting addressJim Meyering
1997-05-25New options: --ignore-fail-on-non-empty and --verbose.Jim Meyering
(remove_parents): Implement new options. (main): Likewise.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering