summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-09-04Move declaractions of lstat, stat, and rpl_lstatJim Meyering
as well as the definition of lstat from here to copy.h.
2000-09-04*** empty log message ***Jim Meyering
2000-09-04.Jim Meyering
2000-09-04mv's --force (-f) option is no longer needed forJim Meyering
this test, now that all it does is cancel --interactive (-i).
2000-09-04*** empty log message ***Jim Meyering
2000-09-04Add new tests using cp's --rem option.Jim Meyering
Reflect the fact that cp's -f option no longer causes cp to remove the destination file before trying to open it. Reflect the fact that `cp -bdl' now makes a backup when copying a symlink onto the file it points to (FIXME: look into this, and why cp -bl does *not* do so).
2000-09-04*** empty log message ***Jim Meyering
2000-09-04(do_link): Tweak diagnostics.Jim Meyering
2000-09-04(same_file_ok): Hoist a test.Jim Meyering
2000-09-04*** empty log message ***Jim Meyering
2000-09-04factor out backup/same test, put it after if-else.Jim Meyering
2000-09-04(same_file_ok): factor some more. improve -- now passes all tests.Jim Meyering
checkpoint
2000-09-04*** empty log message ***Jim Meyering
2000-09-04*** empty log message ***Jim Meyering
2000-09-04*** empty log message ***Jim Meyering
2000-09-04*** empty log message ***Jim Meyering
2000-09-04*** empty log message ***Jim Meyering
2000-09-03*** empty log message ***Jim Meyering
2000-09-03(cp_option_init): Initialize new members.Jim Meyering
2000-09-03.Jim Meyering
2000-09-03.Jim Meyering
2000-09-03tweak commentJim Meyering
2000-09-03Remove obsolete comment block.Jim Meyering
(cp_option_init): Initialize new members. (usage): Reflect the fact that --force (-f) relates only to whether mv prompts. (main): Remove uses of old `force' option member.
2000-09-03(enum): Add UNLINK_DEST_BEFORE_OPENING.Jim Meyering
[long_options]: Add an entry for --remove-destination. (usage): Describe --remove-destination. (do_copy): Use unlink_dest_after_failed_open member, not `force.' (cp_option_init): Initialize new members. (main): Handle UNLINK_DEST_BEFORE_OPENING (aka --remove-destination).
2000-09-03correct description of unlink_dest_after_failed_openJim Meyering
2000-09-03commentJim Meyering
2000-09-03Use strcoll (not strcmp) when comparing file names.Jim Meyering
2000-09-03(struct cp_options) [force]: Remove member.Jim Meyering
[unlink_dest_before_opening]: Add member. [unlink_dest_after_failed_open]: Add member.
2000-09-03(same_file_ok): New function, extracted from copy_internal,Jim Meyering
and partially rewritten. (copy_internal): Unlink destination file when unlink_dest_before_opening option is set, and when the source is neither a regular file nor a directory.
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02add basic testJim Meyering
2000-08-30*** empty log message ***Jim Meyering
2000-08-30Merge in changes from GNU libc.Jim Meyering
2000-08-28declare __fpending only if necessaryJim Meyering
2000-08-28check for __fpending declarationJim Meyering
2000-08-28include stdio_ext.hJim Meyering
2000-08-27*** empty log message ***Jim Meyering
2000-08-27.Jim Meyering
2000-08-27(copy_reg): New parameters: X and NEW_DST.Jim Meyering
Remove the SPARSE_MODE parameter. Update caller. Perform POSIX-mandated (for cp) open-with-O_WRONLY|O_TRUNC when the regular destination file exists; upon failure, unlink that existing file, then open again, but with O_WRONLY|O_CREAT. (copy_internal): `force' in not related to interactive; remove the conjunct. Remove the entire `else if (x->force)' block; justifying removal of the non-directory part is easy: POSIX requires we try to open an existing regular file, so we can't unlink it beforehand. The part that changes the mode on a directory to allow overwriting isn't necessary.
2000-08-27(copy_internal): Set `new_dst' when the move_mode rename fails,Jim Meyering
since we then unlink the destination file.
2000-08-27(copy_reg): Rename two goto labels.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26(usage): --force is independent of --interactive.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26*** empty log message ***Jim Meyering