Age | Commit message (Collapse) | Author |
|
|
|
|
|
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.
When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include <setjmp.h>
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.
* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
|
|
|
|
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
|
|
|
|
To be used in place of these file-scoped globals ...
(dir_stack, len_stack, Active_dir): Remove globals.
(ds_init, ds_free): New functions.
(full_filename): Define.
(full_filename_): Rename from full_filename.
Begin to make AD_* functions more generic.
(AD_push_initial): Don't set status to RM_OK here.
(AD_push): Likewise.
(AD_INIT_OTHER_MEMBERS): Define.
(remove_dir): Define the `status' member manually after each
call to AD_push or AD_push_initial.
|
|
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.
|
|
They're already defined in sys2.h.
|
|
|
|
It's already defined in sys2.h.
|
|
|
|
(AUTHORS): I suppose I've written it.
|
|
|
|
from mv: s/missing file arguments/missing file argument/.
With --target-directory=DIR, cp and mv work with a single file argument.
Reported by Karl Berry.
|
|
[struct dev_ino]: Remove declaration.
|
|
|
|
that it makes sense both when the file exists and when it doesn't.
|
|
|
|
|
|
|
|
|
|
Include strftime.h instead.
|
|
This is necessary at least for Irix6.5 when using c89.
Reported by Nelson Beebe.
|
|
Remove now-redundant usage-specifying comment.
|
|
--preserve=mode,ownership.
(decode_preserve_arg): Advance `comma' to
point the character following the comma.
|
|
in case it's already defined.
|
|
Define to rpl_lstat, so that even on systems like Solaris 5.8,
du honors (per POSIX) the trailing slash on an argument referring
to a symlink-to-directory.
|
|
|
|
regular file and --indicator-style=classify (aka -F).
|
|
|
|
|
|
|
|
|
|
since this package no longer panders to K&R compilers.
|
|
That's already done via system.h.
|
|
That's already done via system.h.
|
|
entry on systems with valid dirent.d_type.
(print_dir): Add DT_LNK and DT_REG.
(main): Make --recursive set format_needs_type, not format_needs_stat.
(gobble_file): Remove a FIXME comment, now that this is fixed.
|
|
`ls --color -F symlink-to-dir' to list the files in
`symlink-to-dir/.'. Now, it prints `symlink-to-dir@',
(just like `ls -F symlink-to-dir') but with the addition
of highlighting.
|
|
|
|
Rewrite so that `/' is no longer represented internally as
the empty string.
(count_entry): When appending a file name component,
account for the fact that the current path may end in `/'.
François Pinard reported that `du symlink-to-dir/' was not
equivalent to `du symlink-to-dir/.'. Now it is.
|
|
|
|
decode the QUOTING_STYLE environment variable. This is more
consistent with the documentation, and with --quoting-style.
|
|
rather than `int' to avoid warnings from gcc.
|
|
When trying to set a high baud rate using stty, it says "invalid
argument". When the high rate is already configured, "stty -a"
returns 0 instead of the true baud rate.
(struct speeds): Add support for all baud rates defined
in linux-2.4.19.
|
|
|
|
|
|
Replace sole use with equivalent `#ifdef S_ISLNK'.
Inconsistency reported by Dmitry V. Levin.
|
|
so that help2man produces properly formatted man pages.
|
|
Based on suggestions from Solar Designer and Dmitry V. Levin.
Add comments.
|