summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-05-12*** empty log message ***Jim Meyering
2001-05-12(ISSLASH): Remove; now in dirname.h.Jim Meyering
(strip_trailing_slashes): Return nonzero if a slash was stripped. Do not strip the last slash after a file system prefix.
2001-05-12(base_name): Remove; now in dirname.h.Jim Meyering
(STREQ): Remove. (same_name): Handle the case where the basename ends in trailing '/'.
2001-05-12(DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): New macros.Jim Meyering
(base_name, base_len, dir_len, strip_trailing_slashes): New decls.
2001-05-12(DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.Jim Meyering
(path_concat): Use base_len to compute base length, not strlen; this means we cannot rely on memcpy to null-terminate.
2001-05-12Use "", not <> to include non-system header files.Jim Meyering
2001-05-12Use "", not <> to include non-system header files.Jim Meyering
2001-05-12Use "", not <> to include dirname.h.Jim Meyering
2001-05-12(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.Jim Meyering
Include <string.h> instead of <stdlib.h>. Do not include <assert.h>; no longer needed. Include xalloc.h. (memrchr): Remove decl. (dir_name_r): Remove. (dir_len): Renamed from dirlen. All callers changed. Rewrite in terms of base_name, for simplicity and consistency. (dir_name): Never return NULL. All callers changed. Do not include <stdlib.h> in test program; no longer needed. return 0; is fine for test program.
2001-05-12(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.Jim Meyering
Do not include <stdio.h>, <assert.h>; no longer needed. Include <string.h>, <dirname.h>. (base_name): Allow file names ending in slashes, other than names that are all slashes. In this case, return the basename followed by the slashes. This is more general, and can be used in places where the original base_name purposely had an assertion failure. (base_len): New function.
2001-05-12(base_name): Remove; now in dirname.h.Jim Meyering
Include <dirname.h> after size_t is defined. (find_backup_file_name, max_backup_version): Use base_len instead of rolling it ourselves. Handle the case of "" and (on DOS) "C:" correctly.
2001-05-12(ISSLASH, base_name): Remove; now in dirname.h.Jim Meyering
Include <dirname.h> after size_t is defined. (addext): Use base_len to trim redundant trailing slashes instead of doing it ourselves. But do not trim the last slash if it is not redundant.
2001-05-12Include dirname.h.Jim Meyering
(strip_trailing_slashes): Remove decl; now in dirname.h.
2001-05-12Include dirname.h.Jim Meyering
(strip_trailing_slashes): Remove decl; now in dirname.h.
2001-05-12.Jim Meyering
2001-05-12*** empty log message ***Jim Meyering
2001-05-12(strip_trailing_slashes): Likewise.Jim Meyering
(find_mount_point): No need to strip trailing slashes before invoking new dir_name.
2001-05-12(strip_trailing_slashes): Remove; now in dirname.h.Jim Meyering
(make_path_private): Use dir_len instead of dir_name, and avoid an extra mealloc call.
2001-05-12(copy_internal): Remove the code that tested for NULLJim Meyering
dir_name return value. That can't happen.
2001-05-12Include "dirname.h".Jim Meyering
(strip_trailing_slashes_2): Remove; now done by strip_trailing_slashes. All callers changed.
2001-05-12(base_name): Remove decl; now in dirname.h.Jim Meyering
2001-05-12Include dirname.h, to get base_nameJim Meyering
2001-05-12include dirname.h.Jim Meyering
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-05-12Wording changes related to -o, -n, and -g.Jim Meyering
2001-05-12(usage): Minor wording changes related to -o, -n, and -g.Jim Meyering
From Paul Eggert.
2001-05-12*** empty log message ***Jim Meyering
2001-05-12*** empty log message ***Jim Meyering
2001-05-12(mode_changed, change_file_mode):Jim Meyering
There's no need to invoke both lstat and stat here, so call just one of the two functions.
2001-05-11.Jim Meyering
2001-05-11(shred invocation): Warn about backups and mirrors.Jim Meyering
2001-05-11(usage): Warn about backups and mirrors.Jim Meyering
2001-05-11s/POSIX/posix/Jim Meyering
2001-05-11remove trailing spacesJim Meyering
2001-05-11fix typo: missing `r}' in this line:Jim Meyering
@itemx --temporary-directory=@var{tempdir}
2001-05-11shift off the leading `_'Jim Meyering
2001-05-11Factor out the root-only test into this ...Jim Meyering
Source ../root-only instead.
2001-05-11*** empty log message ***Jim Meyering
2001-05-11(shred invocation): Warn about backups. From Nelson Beebe.Jim Meyering
2001-05-11add a space after a periodJim Meyering
(true invocation): fix a typo
2001-05-11s/restriction deletion flagJim Meyering
/restricted deletion flag/
2001-05-11.Jim Meyering
2001-05-10*** empty log message ***Jim Meyering
2001-05-10(main): Fix thinko: s/argv[optind]/optarg/.Jim Meyering
2001-05-09*** empty log message ***Jim Meyering
2001-05-09(jm_MACROS): Do not check for fseeko; no longer used.Jim Meyering
2001-05-07*** empty log message ***Jim Meyering
2001-05-05tweak diagnosticJim Meyering
2001-05-05(decode_switches): Complain if the envvar, QUOTING_STYLE,Jim Meyering
is set to an invalid value. Move some declarations of locals into scopes where they're used.
2001-05-05*** empty log message ***Jim Meyering