summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-01-04Remove use of PARAMS.Jim Meyering
2003-01-04Remove use of PARAMS.Jim Meyering
2003-01-04Remove use of PARAMS.Jim Meyering
2003-01-04rm could be tricked into mistakenly reporting a cycle.Jim Meyering
* 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.
2003-01-04(struct dev_ino): Remove declaration.Jim Meyering
2003-01-04Don't include trailing /. in diagnostics about directories.Jim Meyering
(full_filename_): When FILENAME is just `.' and there is a nonempty directory-name part, don't append `/.'.
2003-01-04(remove_cwd_entries): Fix typos in comment.Jim Meyering
2003-01-04(struct dirstack_state): Define.Jim Meyering
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.
2003-01-04(check-misc): New rule, to ensure that no moreJim Meyering
S_IS* macro definitions sneak into the code. (check): Depend on check-misc.
2003-01-04[S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.Jim Meyering
They're already defined in sys2.h.
2003-01-04remove blank lineJim Meyering
2003-01-04(count_entry) [S_ISLNK]: Don't define.Jim Meyering
It's already defined in sys2.h.
2003-01-04[S_ISLNK]: Don't define. It's already defined in sys2.h.Jim Meyering
2003-01-03Add copyright.Jim Meyering
(AUTHORS): I suppose I've written it.
2003-01-03(false.c): Make the generated file be read-only.Jim Meyering
2003-01-03(do_copy): Tweak diagnostic to be consistent with the oneJim Meyering
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.
2003-01-03Include "dev-ino.h".Jim Meyering
[struct dev_ino]: Remove declaration.
2002-12-21.Jim Meyering
2002-12-20(touch): Change the wording of a diagnostic soJim Meyering
that it makes sense both when the file exists and when it doesn't.
2002-12-18(valid_options): Declare to be static.Jim Meyering
2002-12-15Remove all uses of `PARAMS'.Jim Meyering
2002-12-15(PARAMS): Remove definition.Jim Meyering
2002-12-15(PARAMS): Remove definition.Jim Meyering
2002-12-15Remove declaration of nstrftime.Jim Meyering
Include strftime.h instead.
2002-12-14[! HAVE_DECL_MEMRCHR]: Declare memrchr.Jim Meyering
This is necessary at least for Irix6.5 when using c89. Reported by Nelson Beebe.
2002-12-14(usage): Specify how major and minor mode numbers are interpreted.Jim Meyering
Remove now-redundant usage-specifying comment.
2002-12-11Fix a bug whereby cp would fail to parse an option likeJim Meyering
--preserve=mode,ownership. (decode_preserve_arg): Advance `comma' to point the character following the comma.
2002-12-11(NEED_PATHCONF_WRAPPER): Undefine before defining,Jim Meyering
in case it's already defined.
2002-12-08(lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:Jim Meyering
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.
2002-12-06.Jim Meyering
2002-12-06(gobble_file): Also stat the file if it's aJim Meyering
regular file and --indicator-style=classify (aka -F).
2002-12-06.Jim Meyering
2002-12-06.Jim Meyering
2002-12-03regenerate using automake-1.7.1bJim Meyering
2002-12-03no more ansi2nkrJim Meyering
2002-12-03(AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)Jim Meyering
since this package no longer panders to K&R compilers.
2002-12-01Don't include <ctype.h>.Jim Meyering
That's already done via system.h.
2002-12-01Don't include <string.h> or <ctype.h>.Jim Meyering
That's already done via system.h.
2002-12-01ls is now more efficient: it no longer needs to stat each directoryJim Meyering
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.
2002-12-01(gobble_file): Remove the block of code that causedJim Meyering
`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.
2002-11-24More clean-up, not that / means /.Jim Meyering
2002-11-24(du_files): Don't strip any trailing slash.Jim Meyering
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.
2002-11-23.Jim Meyering
2002-11-23(decode_switches): Use case-sensitive matching toJim Meyering
decode the QUOTING_STYLE environment variable. This is more consistent with the documentation, and with --quoting-style.
2002-11-23(output): Declare some local variables to be of type size_t,Jim Meyering
rather than `int' to avoid warnings from gcc.
2002-11-21stty doesn't support all baud rates available in current Linux kernels.Jim Meyering
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.
2002-11-17(movefile): Don't remove trailing slashes from SOURCE.Jim Meyering
2002-11-15.Jim Meyering
2002-11-12(HAVE_SYMLINKS): Remove unnecessary macro definition.Jim Meyering
Replace sole use with equivalent `#ifdef S_ISLNK'. Inconsistency reported by Dmitry V. Levin.
2002-11-10(usage): Transform --help output via s/ - / /,Jim Meyering
so that help2man produces properly formatted man pages.