summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-09-11* src/c99-to-c89.diff: Add another set of curly braces.Jim Meyering
2006-09-11* src/remove.c (remove_dir): Move new cache_stat_init call ontoJim Meyering
it's own line. (rm_1): Move declaration of "st" and new cache_stat_init call "down" to nearer where they're used.
2006-09-11(eval6): Fix buffer overrun, or bad performance, ifPaul Eggert
substr's last operand is very large. Performance problem reported by Sebastian Kreft.
2006-09-09* Makefile.maint (sc_prohibit_assert_without_use): Likewise.Jim Meyering
2006-09-09* Makefile.maint (sc_require_config_h): Skip this test if there are no version-Jim Meyering
controlled .c files.
2006-09-09.Jim Meyering
2006-09-09restore leading "@"Jim Meyering
2006-09-09* Makefile.maint (sc_prohibit_jm_in_m4): Don't hang when thereJim Meyering
are no .m4 files.
2006-09-08* bootstrap: Export CVS_RSH separate from its assignment, to workJim Meyering
even with Solaris 10's /bin/sh. Suggestion from Mark D. Baushke.
2006-09-08tail now ignores the -f option if POSIXLY_CORRECT is set,Paul Eggert
no file operand is given, and standard input is any FIFO.
2006-09-08mv and "cp -r" no longer fail when invoked with two argumentsJim Meyering
where the first one names a directory and the second name ends in a slash and doesn't exist. E.g., "mv dir B/", for nonexistent B, now succeeds, once more. This reverts part of the 2004-06-27 change for 5.3.0. * NEWS: Say the above. * src/mv.c (target_directory_operand): Don't require (here) that the target operand "look like" a directory. This change pushes the test down to the rename syscall level, where a "mv dir existing-non-dir/" will mistakenly succeed on older systems that ignore trailing slashes in the rename destination argument. * src/cp.c (target_directory_operand): Likewise, but for cp. * tests/mv/trailing-slash: Exercise the above fixes. * tests/cp/trailing-slash: New file. * tests/cp/Makefile.am (EXTRA_DIST): Add trailing-slash.
2006-09-08* bootstrap: Use the previously unused variable, $src,Jim Meyering
to avoid repeating "$GNULIB_SRCDIR/$file".
2006-09-08* bootstrap (cp_mark_as_generated): Don't use "local", toJim Meyering
accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues. Rename now-global "$src" and "$dst" to have cp_ prefix. Safer, and avoids confusion.
2006-09-08* bootstrap: Fix last-minute typo.Jim Meyering
2006-09-08* bootstrap (cp_mark_as_generated): Don't add C-style comments for .l or .y ↵Jim Meyering
files.
2006-09-08* bootstrap (cp_mark_as_generated): New function.Jim Meyering
(slurp): Use it to prepend editor hints and a warning that the file we're copying is generated. Suggestion from Bruce Korb.
2006-09-07* bootstrap: Revert last change. There are less disruptive waysJim Meyering
to mark these generated files as read-only.
2006-09-07* src/c99-to-c89.diff: Update to have proper offsets.Jim Meyering
2006-09-06Ensure that some gnulib-tool-generated files are read-only.Jim Meyering
* bootstrap (slurp): Put the body of this function in a sub-shell, with "umask a-w" so that all new files are read-only. Remove each file before we write to it, in case it's read-only. Make po/Makevars and runtime-po/Makevars read-only, too.
2006-09-05* tests/cp/acl: Skip this test when cp lacks ACL support.Jim Meyering
* tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
2006-09-05* src/c99-to-c89.diff (remove.c): Adapt one hunk to match the newJim Meyering
context from change of 2006-09-02.
2006-09-04(Infrastructure changes): make wording more accurateJim Meyering
2006-09-04* README-cvs: Fix typo in update command.Jim Meyering
2006-09-03* NEWS: Tweak the wording in the new change description so thatJim Meyering
no one can think this change causes e.g., `rm -fr foo../' to fail.
2006-09-03Use $CONFIG_HEADER, rather than hard-coding it.Jim Meyering
* tests/rm/Makefile.am (TESTS_ENVIRONMENT): Set $CONFIG_HEADER.
2006-09-03* tests/rm/inaccessible: Adjust for movement of config.h to lib/.Jim Meyering
2006-09-03rm now rejects attempts to remove /, ./, and ../.Paul Eggert
2006-09-03(Treating / specially): --preserve-root isPaul Eggert
now the default for rm. (rm invocation): Likewise. Also, document that you can't remove `.' or `..'. Use the POSIX term "root directory" rather than the more-ambiguous "file system root".
2006-09-03New file.Paul Eggert
2006-09-03(TESTS): Add r-4.Paul Eggert
2006-09-03Don't include dirname.h, since system.h does it now.Paul Eggert
(cache_fstatat, cache_stat_init): New functions. (cache_statted, cache_stat_ok): New functions. (write_protected_non_symlink): Remove struct stat ** buf_p arg, which is no longer needed with the new functions. All callers changed. (prompt, is_dir_lstat, remove_entry, remove_dir): New struct stat * arg. All callers changed. (write_protected_non_symlink, prompt, is_dir_lstat, remove_entry): (remove_cwd_entries, remove_dir, rm_1): Use and maintain the file status cache. (prompt, remove_entry): Omit the first "directory" in the diagnostic "Cannot remove directory `foo': is a directory". This causes "rm" to pass a test case that it would otherwise fail now that it "knows" more about its argument. I think the diagnostic is better without the first "directory" anyway. (prompt): Remove the no-longer-needed IS_DIR arg; all callers changed. (rm_1): Reject attempts to remove /, ./, or ../.
2006-09-03Fix comment.Paul Eggert
2006-09-03Don't include dirname.h, since system.h does it now.Paul Eggert
(usage, main): --preserve-root is now the default.
2006-09-03Include "dirname.h", since dot_or_dotdot needs itPaul Eggert
now. (dot_or_dotdot): Succeed even if "." or ".." is followed by a slash.
2006-09-03Don't include dirname.h, since system.h does it now.Paul Eggert
2006-09-03rm now rejects attempts to remove /, ./, and ../.Paul Eggert
2006-09-01Fix typo in previous change; an unsigned int wasn't converted toPaul Eggert
uintmax_t at the right time. Problem reported by Bruno.
2006-09-01Update to match current gnulib.Paul Eggert
2006-09-01* m4/jm-macros.m4 (gl_MACROS): Call cu_PREREQ_STAT_PROG ratherPaul Eggert
than AC_REQUIREing, so that sys/mount.h isn't tested for after the test result. I'm not sure why this fix is needed, but it works. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Revamp to reflect better what stat.c actually needs. * src/stat.c: Include <stddef.h> (alignof): New macro. (HAVE_STRUCT_STATXFS_F_FSID___VAL, HAVE_STRUCT_STATXFS_F_FSID_VAL): Remove. (STRUCT_STATXFS_F_FSID_IS_INTEGER): New macro. (FSID_VAL): Remove. (print_statfs): If f_fsid isn't an integer, grab its words one at a time in little-endian order. This is a bit easier to configure and should avoid a compilation failure on MacOS reported by Bruno Haible.
2006-08-29* src/stat.c (HAVE_STRUCT_STATXFS_F_FSID_VAL, FSID_VAL): New macros, toPaul Eggert
work around a Mac OS X porting problem reported by Bruno Haible in <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00308.html>. (print_statfs): Use them. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Check for __val versus val components of fsid. Omit some checks that stat.c doesn't care about.
2006-08-29* bootstrap.conf (gnulib_modules): Add isapipe.Paul Eggert
* src/tail.c: Include isapipe.h. (IS_PIPE_LIKE_FILE_TYPE): Remove. (IS_TAILABLE_FILE_TYPE): Just list both FIFOs and sockets as tailable, since this seems to be portable. (main): Use isapipe, to fix a bug on MacOS X reported by Bruno Haible in <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00304.html>.
2006-08-29* src/system.h (LOCALEDIR): Remove, since configmake.h now definesPaul Eggert
it for us.
2006-08-29(main): Don't test whether macros likePaul Eggert
S_ISLNK are defined, since they're always defined now.
2006-08-28* src/copy.c (copy_internal): Don't test whether macros likePaul Eggert
S_ISLNK are defined, since they're always defined now. * src/cp.c (main): Likewise. * src/ln.c (main): Likewise. * src/ls.c (get_link_name, make_link_name): Likewise. * src/mkfifo.c (usage): Likewise. * src/who.c (S_IWGRP): Likewise.
2006-08-28Adjust to recent gnulib changes for the gnulib module.Paul Eggert
* bootstrap.conf (gnulib_modules): Add fcntl. * src/system.h (SEEK_SET, SEEK_CUR, SEEK_END): Remove. Other code is already assuming these macros are defined. (O_DIRECT, O_DIRECTORY, O_DSYNC, O_NDELAY, O_NOATIME, O_NONBLOCK): (O_NOCTTY, O_NOFOLLOW, O_NOLINKS, O_RSYNC, O_SYNC, O_BINARY, O_TEXT): Remove; the fcntl module now handles these.
2006-08-28Adjust to recent gnulib changes for the inttypes module.Paul Eggert
* bootstrap.conf (gnulib_modules): Remove stdint; add inttypes. (excluded_files): Don't exclude m4/inttypes-h.m4 or m4/inttypes-pri.m4. * src/system.h: Don't bother to include <stdint.h>, since we can now assume inttypes.h does the equivalent of including stdint.h.
2006-08-27Use http://, not https:// for savannah.gnu.org bug URLs.Jim Meyering
2006-08-27* NEWS: Mention this.Jim Meyering
2006-08-27* src/copy.c (copy_internal): Don't make a backup if the lastJim Meyering
component of the source name is "." or "..". Reported by Andreas Schwab in https://savannah.gnu.org/bugs/?17540. * tests/cp/src-base-dot: New file. Test for the above fix. * tests/cp/Makefile.am (TESTS): Add src-base-dot.
2006-08-27* src/system.h (DOT_OR_DOTDOT): Remove macro. Rewrite as a...Jim Meyering
(dot_or_dotdot): ...new static inline function. * src/remove.c (rm_1): Reflect this renaming. * src/ls.c (basename_is_dot_or_dotdot): Likewise.