Age | Commit message (Collapse) | Author |
|
the caller (mv) doesn't remove the source file.
|
|
|
|
got changed and we want the default now.
|
|
|
|
|
|
|
|
when copying (i.e., not in move mode) and not preserving permissions.
|
|
Patch by Frederik Eaton.
|
|
|
|
parse_ls_color, since that function may have reset it.
Based on a patch from Richard Dawe.
|
|
or group names that are longer than 8 characters.
|
|
Accept new options: --all (-a), --boot (-b), --dead (-d),
--login, --process (-p), --runlevel (-r), --short (-s), --time (-t),
--users (-u).
The -u option now produces POSIX-specified results and is the same as
the long option `--users'. --idle is no longer the same as -u.
(time_string, print_line, print_boottime, print_deadprocs, print_login,
print_initspawn, print_clockchange, print_runlevel): New functions.
(print_user): Renamed from print_entry and reworked.
(search_entries): Remove function.
(who_am_i): Likewise.
(usage): Describe new options.
(main): Handle new options.
Mostly from Michael Stone.
|
|
|
|
|
|
determine whether to enable the DT_INIT definition, not the less
portable `#if defined _DIRENT_HAVE_D_TYPE || defined DTTOIF'.
Reported by Eli Zaretskii.
|
|
The argument is already quoted via the quote function.
|
|
(nstrftime): New decl.
(enum time_style): New enum.
(time_style_args, time_style_types): New constants.
(full_time): Remove.
(long_time_format): Initialize to POSIX defaults.
(TIME_STYLE_OPTION): New constant.
(long_options, decode_switches, usage): Add --time-style support.
(long_time_expected_width): Use nstrftime, not strftime.
(print_long_format): Likewise.
Increase initial size to match new full-iso time style.
|
|
|
|
|
|
|
|
The default behavior is unchanged.
Include argmatch.h.
(usage): Update.
(check_file): Implement it.
(main): Handle new, optional arguments.
Patch by Padraig Brady.
|
|
count_lines, in error message.
|
|
(print_color_indicator, print_name_with_quoting, print_type_indicator,
length_of_file_name_and_frills):
Use mode_t, not unsigned int, to store modes.
(dired_dump_obstack): Do not assume size fits in 'int'.
(get_link_name): readlink returns ssize_t, not int.
(make_link_path): Store buffer size as size_t, not int.
(print_long_format): Use unsigned long, not unsigned, to print
nlink_t, uid_t, gid_t, major_t, minor_t.
|
|
|
|
|
|
to avoid shadowing warnings due to new declarations from dirname.h.
|
|
(dereference): New var, replacing trace_links, which was removed.
(long_options, main, decode_switches, gobble_file, usage):
Implement the changes.
|
|
|
|
Do not assume that major_t and minor_t are no wider than int.
Check for makedev failures. Convert device numbers via uintmax_t, not
unsigned long, just in case. Coalesce duplicate code in the block and
character device cases.
|
|
(base_name): Remove decl; now in dirname.h.
|
|
(base_name, strip_trailing_slashes): Remove decls; now in dirname.h.
(main): Use base_len instead of strip_trailing_slashes to strip
trailing slashes.
|
|
(main): Use dir_len rather than dir_name_r.
|
|
(find_mount_point): No need to strip trailing
slashes before invoking new dir_name.
|
|
(make_path_private): Use dir_len instead of
dir_name, and avoid an extra mealloc call.
|
|
dir_name return value. That can't happen.
|
|
(strip_trailing_slashes_2): Remove; now done by
strip_trailing_slashes. All callers changed.
|
|
|
|
|
|
|
|
|
|
From Paul Eggert.
|
|
There's no need to invoke both lstat and stat here, so call just
one of the two functions.
|
|
|
|
|
|
|
|
is set to an invalid value.
Move some declarations of locals into scopes where they're used.
|
|
(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.
|
|
|
|
downcase bulleted items
remove some periods
|
|
some of the filesystem types on which shred is not effective.
|