Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-12 | Use "", not <> to include non-system header files. | Jim Meyering | |
2001-05-12 | Use "", not <> to include non-system header files. | Jim Meyering | |
2001-05-12 | Use "", 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-12 | Include dirname.h. | Jim Meyering | |
(strip_trailing_slashes): Remove decl; now in dirname.h. | |||
2001-05-12 | Include 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 NULL | Jim Meyering | |
dir_name return value. That can't happen. | |||
2001-05-12 | Include "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-12 | Include dirname.h, to get base_name | Jim Meyering | |
2001-05-12 | include dirname.h. | Jim Meyering | |
2001-05-12 | (strip_trailing_slashes): Remove declaration; now in dirname.h. | Jim Meyering | |
2001-05-12 | Wording 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-11 | s/POSIX/posix/ | Jim Meyering | |
2001-05-11 | remove trailing spaces | Jim Meyering | |
2001-05-11 | fix typo: missing `r}' in this line: | Jim Meyering | |
@itemx --temporary-directory=@var{tempdir} | |||
2001-05-11 | shift off the leading `_' | Jim Meyering | |
2001-05-11 | Factor 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-11 | add a space after a period | Jim Meyering | |
(true invocation): fix a typo | |||
2001-05-11 | s/restriction deletion flag | Jim 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-05 | tweak diagnostic | Jim 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 | |
2001-05-05 | (print_owner): New global variable. | Jim Meyering | |
(usage): Update the description of -g. (decode_switches): Honor the -g option (omit owner information), now that POSIX specifies it. (print_long_format): Don't print owner name if -g was specified. Move declaration of `user_name' into the scope where it's used. (print_group): Rename global from `inhibit_group'. Update all uses accordingly. (decode_switches): Make -n work just like -l, except with numeric IDs, per POSIX. Before, to have any effect, -n had to be used with -l. Reported by Dale Scheetz. (usage): Update the description of -n. Separate the descriptions of -n and --numeric-uid-gid. Split string in --help output that had exceeded my limit of 2048 bytes. | |||
2001-05-05 | *** empty log message *** | Jim Meyering | |
2001-05-05 | (usage): Correct description of -3. | Jim Meyering | |