summaryrefslogtreecommitdiff
path: root/tests/cp
AgeCommit message (Collapse)Author
2006-09-20* NEWS: Document fix for cp -i and mv -i.Paul Eggert
* src/copy.c (copy_internal): With -i, prompt even if the source is a directory and the destination is not. This is required by POSIX and gives the user a chance to bail out before failing. * tests/cp/Makefile.am (TESTS): Add cp-i. * tests/cp/cp-i: New file. * tests/mv/Makefile.am (TESTS): Add i-5. * tests/mv/i-5: New file.
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-05* tests/cp/acl: Skip this test when cp lacks ACL support.Jim Meyering
* tests/cp/Makefile.am (TESTS_ENVIRONMENT): Set $(CONFIG_HEADER).
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-22* aclocal.m4, config.hin, configure:Paul Eggert
Remove from CVS, since ./bootstrap generates them automatically. * .cvsignore: Add INSTALL, Makefile.in, *.cache, *.lineno, *.log. Remove more-specific entries. This catches files like configure.lineno. * man/.cvsignore: Add Makefile.in. * src/.cvsignore: Add Makefile.in. Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c. For .cvsignore file under the tests directory: Add Makefile.in. Sort entries if necessary. Remove *.I, *.E, *.X, *.O, *-tests, build-script, mk-script if they're never created in this directory. * build-aux/.cvsignore: New file. * doc/.cvsignore: Add Makefile.in, coreutils.html, coreutils.pdf, coreutils.ps, coreutils.tps. Remove coreutils.cm (dunno what it is, but the makefile doesn't mention it). Remove coreutils.info as it is subsumed by coreutils.info*. * lib/.cvsignore: Add Makefile.in, getdate.tab.h. Remove stat.c, sysexit.h. * m4/.cvsignore: Remove Makefile, dev-ino.m4, glibc2.m4, intdiv0.m4, inttypes-h.m4, inttypes-pri.m4, jm-glibc-io.m4, lcmessage.m4, lock.m4, printf-posix.m4, same-inode.m4, size_max.m4, uintmax_t.m4, ulonglong.m4, visibility.m4, xsize.m4. Many of these are put in automatically by ../bootstrap, but that's a bootstrap bug that I plan to fix shortly. * po/.cvsignore: More ../bootstrap-related fixes, plus remove old cruft. Add *.po, LINGUAS, Makevars. Remove *.cat, *.msg, cat-id-dbl.c, messages.mo, stamp-cat-id.
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert
2006-08-19.Jim Meyering
2006-08-19* NEWS: Fix cp --sparse so that it preserves tail-end sparseness, evenJim Meyering
when the file's apparent size is not a multiple of its block size. * src/copy.c (copy_reg): Don't write a NUL before calling ftruncate. For some file sizes, writing that single byte would unnecessarily waste a few file blocks. That write may have been necessary in the early days of Linux, but now, removing it should be safe. Based on a patch by Alan Curry: <http://bugs.debian.org/370792> * tests/cp/sparse: New test for the above. * tests/cp/Makefile.am (TESTS): Add sparse. * tests/sparse-file: New file, essence factored out of... * tests/du/8gb: ... here. Use the new script.
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert
2006-08-16* tests/cp/Makefile.am: Don't mark "acl" as XFAIL.Jim Meyering
* tests/cp/acl: Instead, skip the test if either setfacl or getfacl fails.
2006-08-162006-08-16 Andreas Schwab <schwab@suse.de>Jim Meyering
* tests/cp/acl: Don't use non-portable == operator for test.
2006-08-15.Jim Meyering
2006-08-09Regenerate.Paul Eggert
2006-08-09Regenerate.Paul Eggert
2006-07-28Use symbolic mode so that we clearPaul Eggert
setgid bit more reliably on directories.
2006-07-25Use "chmod 0500" rather than "chmod 500".Paul Eggert
2006-07-17Regenerate.Paul Eggert
2006-07-09Regenerate.Paul Eggert
2006-07-03* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):Jim Meyering
Add $VG_PATH_PREFIX as a prefix to $PATH
2006-06-11Setting TIME_STYLE=long-iso in the environment would make theJim Meyering
cp/same-file test fail. * tests/envvar-check (vars): Add TIME_STYLE to the list. * tests/cp/same-file: Revert last change. Source the envvar-check script, to ensure that TIME_STYLE settings don't affect these tests.
2006-06-11* tests/cp/same-file: Execute 'ls' in the C locale, so that itPaul Eggert
uses POSIX time stamp formats. Problem reported by John Nixon in <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
2006-06-03Test for this:Jim Meyering
Make `cp --link --no-dereference' work also on systems where the link system call cannot create a hard link to a symbolic link. * src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use the link syscall on a symlink when it would do the wrong thing. Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451>
2006-06-03(TESTS): Add link-no-deref.Jim Meyering
2006-05-28Source lang-default. From Ralf Wildenhues.Jim Meyering
2006-05-06.Jim Meyering
2006-03-26.Jim Meyering
2006-03-12.Jim Meyering
2006-02-20.Jim Meyering
2006-02-04*** empty log message ***Jim Meyering
2006-02-04tweak commentJim Meyering
2006-02-04add a commentJim Meyering
2006-02-04(TESTS): Add cp-deref.Jim Meyering
2006-02-04New file. Test for today's fix.Jim Meyering
2006-01-12.Jim Meyering
2006-01-04.Jim Meyering
2005-12-21.Jim Meyering
2005-12-17.Jim Meyering
2005-12-15.Jim Meyering
2005-12-03.Jim Meyering
2005-11-22.Jim Meyering
2005-11-17s/filesystem/file system/ in a commentJim Meyering
2005-11-17.Jim Meyering
2005-11-17remove commented-out linesJim Meyering
2005-11-17(XFAIL_TESTS): Add acl.Jim Meyering
2005-11-17(TESTS): Add acl.Jim Meyering
2005-11-17no need to do `cd $pwd; rm -rf $tmp'; the traps handle thatJim Meyering
2005-11-17split long lineJim Meyering
2005-11-17New tests, from Andreas Gruenbacher.Jim Meyering
2005-11-16Accommodate HPUX. It appears to fail with EACCES rather than EPERM.Jim Meyering
Reported by Peter O'Gorman here: http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/5766
2005-11-04Mark this test as `very-expensive'Jim Meyering