summaryrefslogtreecommitdiff
path: root/src/copy.c
AgeCommit message (Collapse)Author
1998-07-03(copy_internal): Rename variable and reverse sense of testsJim Meyering
to make the code a little clearer.
1998-07-03(SAME_INODE): New macro.Jim Meyering
Use it to replace open-coded equivalents.
1998-07-03(copy_internal): Try harder identifying a relativeJim Meyering
symbolic link in the current directory. From Andreas Schwab.
1998-07-03(copy_internal): Don't skip test for same file if creating a hardlinkJim Meyering
from symlink over a non-symlink while making backups.
1998-07-03(copy_internal): Don't call chown on a symlink.Jim Meyering
1998-06-27(copy_internal): Fix it so hard-link test is no longer hidden insideJim Meyering
big if-(backup_type == none) block.
1998-06-27(copy_reg): Detect identical source and dest here.Jim Meyering
(copy_internal): Make the test symmetric.
1998-05-13(copy_internal): Plug a small leak.Jim Meyering
1998-05-11(copy_internal): Use new move_mode member.Jim Meyering
Add parameter. (copy): Add parameter.
1998-05-10(new_nondir_mode): New function. Use where appropriate.Jim Meyering
Use more-specific preserve_* members in place of removed `preserve'. (copy_internal): Honor failed_unlink_is_fatal.
1998-03-28Add copyright.Jim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macros.Jim Meyering
Use #if !, not #ifndef with HAVE_ macros.
1998-03-13(copy_dir): Add new parameter, copy_into_self, and set it.Jim Meyering
(copy_internal): Likewise. (copy): Likewise. Update all callers.
1998-01-25(DO_CHOWN): Don't fail for non-root when chown fails dueJim Meyering
not only to lack of permission (EPERM), but also to lack of support (EINVAL). Reported by Bengt Martensson.
1998-01-22(copy_internal): Use x->backup_type, not the global.Jim Meyering
(valid_options): Use VALID_BACKUP_TYPE and VALID_SPARSE_MODE.
1997-12-25(copy_internal): Use S_ISLNK only if defined.Jim Meyering
1997-12-16s/__P/PARAMS/gJim Meyering
1997-11-30(copy_reg): Store file size as off_t, not long.Jim Meyering
Do not assume st_size has been normalized to 512 byte blocks, or that it fits in size_t after dividing by the blocksize.
1997-11-12(copy_dir): Use path_concat rather than open-coding it.Jim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-23Remove stpcpy decl.Jim Meyering
1997-10-06fix brainoJim Meyering
1997-10-06(copy_internal): Use require_preserve.Jim Meyering
1997-10-04Remove old-style savedir dcl.Jim Meyering
Include savedir.h for prototype.
1997-07-06declare stpcpyJim Meyering
1997-05-27clean up for -WallJim Meyering
1997-05-26(copy_internal): When preserving symlinks (--no-dereference) and theJim Meyering
destination file is a symlink, use stat (not xstat) to see if it points back to the source. Reported by James <james@albion.glarp.com>.
1997-02-27(copy_internal): When there is any potential forJim Meyering
ambiguity in a diagnostic, give explanatory diagnostic in addition to file name.
1997-02-02.Jim Meyering
1997-02-01.Jim Meyering
1997-01-15Add struct dir_list and is_ancestor.Jim Meyering
1997-01-11.Jim Meyering
1997-01-11.Jim Meyering