summaryrefslogtreecommitdiff
path: root/src/copy.h
AgeCommit message (Collapse)Author
2006-12-06* NEWS: Document the cp --preserve=ownership fix.Paul Eggert
* m4/jm-macros.m4 (coreutils_MACROS): Check for fchmod. * src/copy.c (fchmod_or_lchmod): New function. (copy_reg): New arg OMITTED_PERMISSIONS. All uses changed. Omit confusing and unused ", dst_mode" arg to 'open' without O_CREAT. When creating a file, use O_EXCL, so we're more likely to detect funny business by other processes. At the end, if permissions were omitted, chmod them back in. (copy_internal): If the ownership might change, omit some permissions at first, then restore them after chowning the file. * src/cp.c (make_dir_parents_private): Likewise. * src/copy.c (cached_umask): New function. * src/copy.h (cached_umask): New decl.
2005-12-17(cp_option_init) [umask_kill]: Remove member.Jim Meyering
2005-07-03Include "lstat.h" rather than rolling our own.Paul Eggert
2005-06-02Don't use "path" or "filename".Paul Eggert
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.
2004-11-26(stat, lstat, rename): Remove decls.Paul Eggert
2004-07-30(struct cp_options): Use bool when appropriate.Paul Eggert
2004-06-30Use "file system" rather than "filesystem" in comments.Jim Meyering
2004-02-07Remove xstat function pointer member. The way it was used was notJim Meyering
portable, since some systems (OSF V5.1, Solaris 2.5.1) provide static inline `stat' and `lstat' functions, thus making the tests of `xstat == lstat' in copy.c always fail. (struct cp_options) [xstat]: Remove member. (XSTAT): New macro.
2003-03-26(struct cp_options): Add a comment.Jim Meyering
2003-01-04Remove use of PARAMS.Jim Meyering
2002-12-15Remove all uses of `PARAMS'.Jim Meyering
2001-11-22(struct cp_options) [src_info]: New member.Jim Meyering
(src_info_init): Declare.
2001-11-22Include hash.h.Jim Meyering
(struct cp_options) [dest_info]: New member.
2001-10-13(enum Dereference_symlink): Add comments.Jim Meyering
(struct cp_options) [preserve_links]: New member.
2001-10-13(struct cp_options) [failed_unlink_is_fatal]: Remove unused member.Jim Meyering
2001-10-13(struct cp_options): Rename members:Jim Meyering
s/preserve_owner_and_group/preserve_ownership/, and s/preserve_chmod_bits/preserve_mode/.
2001-09-28(dest_info_init): Declare.Jim Meyering
2001-09-15(enum Interactive): Remove members, I_OFF and I_ON.Jim Meyering
Instead, add I_ALWAYS_YES, I_ALWAYS_NO, and I_ASK_USER.
2001-08-13(enum Interactive): New type.Jim Meyering
(struct cp_options) [interactive]: Change type to Interactive. (struct cp_options) [stdin_tty]: New member.
2001-01-14[RENAME_TRAILING_SLASH_BUG]: Use the rename wrapper.Jim Meyering
2000-09-04Move declaractions of lstat, stat, and rpl_lstatJim Meyering
as well as the definition of lstat from cp.c to this file.
2000-09-03correct description of unlink_dest_after_failed_openJim Meyering
2000-09-03commentJim 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-08-20(enum Dereference_symlink): Define.Jim Meyering
(struct cp_options) [dereference]: Change type to Dereference_symlink.
1999-04-26(struct cp_options.umask_kill): Use mode_t, not unsigned int.Jim Meyering
1998-05-11Better support for mv:Jim Meyering
[struct cp_options] (move_mode): New member.
1998-05-10Support for install:Jim Meyering
[struct cp_options] (failed_unlink_is_fatal): New member. (preserve_owner_and_group): New member. (preserve_chmod_bits): New member. (preserve_timestamps): New member. (preserve): Remove member. (set_mode): New member. (mode): New member.
1998-03-13(copy): Update prototype.Jim Meyering
1998-01-21(VALID_SPARSE_MODE): Define.Jim Meyering
[struct cp_options] (backup_type): New member.
1997-12-21Use PARAMS, not __P.Jim Meyering
1997-10-06*** empty log message ***Jim Meyering
1997-10-06(struct cp_options): New field: require_preserve.Jim Meyering
1997-02-02.Jim Meyering
1997-02-02.Jim Meyering