summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-06-02Don't use "path" or "filename".Paul Eggert
(install_file_in_file_parents): Renamed from install_file_to_path. All uses changed.
2005-06-02Don't use "path" or "filename".Paul Eggert
Don't include "path-concat.h"; not needed.
2005-06-02Don't use "path" or "filename".Paul Eggert
(usage): Don't use "path" to describe a file name. (remove_empty_parents): Renamed from empty_paths. All uses changed. (longopts): Add comment that --path is deprecated.
2005-06-02(usage): Don't use "path" to describe a file name.Paul Eggert
2005-06-02Don't use "path" or "filename".Paul Eggert
(parents_option): Renamed from flag_path. All uses changed. (make_dir_parents_private): Renamed from make_path_private. All uses changed. (usage): Don't use "path" to describe a file name.
2005-05-31(chown_privileges, chown_failure_ok): Mark as `extern'.Jim Meyering
This is a crutch so that `make distcheck's sc_tight_scope rule knows that they really are deliberately declared that way.
2005-05-31(cp_options_init): Use chown_privileges rather than geteuid.Paul Eggert
2005-05-31(re_protect): Remove unnecessary call to geteuid.Paul Eggert
Use chown_failure_ok rather than our own code. (cp_options_init): Use chown_privileges rather than getuid.
2005-05-31Add copyright notice.Paul Eggert
(struct cp_options): Remove myeuid member. Add chown_privileges member. (chown_privileges, chown_failure_ok): New function decls.
2005-05-31Port to Solaris 10's rules for whether programs can chown files.Paul Eggert
[HAVE_PRIV_H]: Include <priv.h>. (DO_CHOWN): Remove. Replaced by chown_failure_ok. All callers changed. (copy_internal): If chown failed, don't worry about what happened to the mode bits; they can't have changed. (chown_privileges, chown_failure_ok): New functions.
2005-05-30.Jim Meyering
2005-05-30Regenerate.Paul Eggert
2005-05-30Include sys/param.h if it exists, not if _POSIX_VERSIONPaul Eggert
isn't defined. Don't include <sys/file.h>; no longer needed. (getegid, geteuid): Remove no-longer-necessary decls.
2005-05-30Don't bother mentioning _POSIX_VERSION in comment.Paul Eggert
2005-05-30(OPENOPTS, TEXT1T01, TEXTCNVT): Remove.Paul Eggert
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.
2005-05-30(getpwnam, getgrnam): Remove decl.Paul Eggert
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
2005-05-30(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)Paul Eggert
[!defined _POSIX_VERSION]: Remove decls.
2005-05-30(geteuid) [!defined _POSIX_VERSION]: Remove decl.Paul Eggert
2005-05-30(getgrnam, getgrgid) [!defined _POSIX_VERSION]:Paul Eggert
Remove decls.
2005-05-30(getgrnam) [!defined _POSIX_VERSION]: Remove decl.Paul Eggert
2005-05-30(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:Paul Eggert
Define to 256, not 255, as per modern POSIX.
2005-05-28(skip): Return the number of records that were notPaul Eggert
skipped due to encountering EOF. (dd_copy): If the file wasn't seekable and EOF was encountered, write zeros past EOF until the desired offset is reached.
2005-05-27Include inttostr.h, strnumcmp.h.Paul Eggert
(whitespace, digit, digit_value, integer_expected_error): Remove. (is_int): Remove; replaced by... (find_int): New function. (binary_operator): Don't let integers overflow in comparisons; return the correct answer instead. Simplify the code. (unary_operator): Convert the integer ourself, since find_int no longer does so.
2005-05-27Refactor so that others can use large-integerPaul Eggert
comparison functions. Include "strnumcmp.h". (NEGATION_SIGN, NUMERIC_ZERO, fraccompare): Remove; moved to strnumcmp. (decimal_point): Now int, to simplify converison overhead with new API. All uses changed. (thousands_sep): Now -1 if there isn't one, as per new API. All uses changed. (numcompare): Move contents to strnumcmp module, except for skipping blanks.
2005-05-27Include strnumcmp.h, xstrtol.h.Paul Eggert
(looks_like_integer): New function. (toarith): Use it. Also, use xstrtoimax rather than rolling our own diagnostics. (eval2): Don't look for trouble if !evaluate; this simplifies things. Compare numbers using string comparison, so that overflow is not possible.
2005-05-26Fix typo in comment.Paul Eggert
2005-05-26nohup now redirects a tty stdin to an unreadable fd instead of closing it.Paul Eggert
2005-05-26.Jim Meyering
2005-05-26(toarith): Fix a sign error introduced on 2005-01-14.Jim Meyering
2005-05-19(AD_mark_helper, AD_mark_current_as_unremovable):Jim Meyering
Remove inaccurate-but-harmless `const' attributes.
2005-05-19(decode_field_spec): Add an abort afterJim Meyering
`error (EXIT_FAILURE, ...' to avoid a gcc warning in caller, about variables being used uninitialized.
2005-05-18Regenerate.Paul Eggert
2005-05-18Remove test for HAVE_LIMITS_H; we can assumePaul Eggert
it's always true now.
2005-05-18Add copyright notice.Paul Eggert
(factor_LDADD): Remove, as factor no longer needs sqrt.
2005-05-16Fix Cygwin porting problem reported by Eric Blake.Paul Eggert
(DT_IS_DIR): Remove. (DT_IS_KNOWN, DT_MUST_BE): New macros. (remove_entry): Use them.
2005-05-14.Jim Meyering
2005-05-14Regenerate.Paul Eggert
2005-05-14Include unlinkdir.h.Paul Eggert
(UNLINK_CAN_UNLINK_DIRS): Remove. (remove_entry): Use cannot_unlink_dirs () rather than UNLINK_CAN_UNLINK_DIRS.
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14.Jim Meyering
2005-05-14.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-13"bytes, words and lines" -> "lines, words, and bytes" in commentPaul Eggert
2005-05-13fix grammar typo in commentJim Meyering
2005-05-13.Jim Meyering
2005-05-13* NEWS: `rm -r' now removes all of the files it should, even onJim Meyering
systems with a buggy readdir affecting file systems inaccessible at configure time. In some unusual circumstances `rm -r' would fail to remove -- or even consider -- all entries in a directory with more than 254 (SunOS) or 338 (Darwin) entries. This could cause trouble even on other types of systems when using an affected file system via e.g., NFS. The underlying cause was a bug in readdir on those systems. Coreutils-5.2.1 and earlier used a configure-time test designed to detect precisely those problem systems, but it would detect the problem and enable remove.c's work-around code only when its configure-time test was run on a losing file system. Obviously, it couldn't detect a problem if the offending file system wasn't tested or even mounted at coreutils configure time. Now, rm itself performs a minimal-cost run-time test to detect the problem. (CONSECUTIVE_READDIR_UNLINK_THRESHOLD): Define. (remove_cwd_entries): When readdir returns NULL for a directory from which we've removed more than CONSECUTIVE_READDIR_UNLINK_THRESHOLD entries, call rewinddir and then resume the readdir/unlink loop. (UNLINK_CAN_UNLINK_DIRS): Rename from ROOT_CAN_UNLINK_DIRS.
2005-05-12(main): nohup now closes stdin if it is a terminal, unlessPaul Eggert
POSIXLY_CORRECT is set.
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering