diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-31 06:16:51 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-31 06:16:51 +0000 |
commit | f707eb199ef9a0529fe850bb1b8c3c1bc5c13b21 (patch) | |
tree | ed4ce156da97c05dc0ce6a11798e958916e3467c | |
parent | fe34f6c28d1bb2db41248a7a344008d28fa4eda6 (diff) | |
download | coreutils-f707eb199ef9a0529fe850bb1b8c3c1bc5c13b21.tar.xz |
Port to Solaris 10's rules for whether programs can chown files.
-rw-r--r-- | ChangeLog | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,7 +1,26 @@ -2005-05-29 Paul Eggert <eggert@cs.ucla.edu> +2005-05-30 Paul Eggert <eggert@cs.ucla.edu> * Version 5.3.1. + Port to Solaris 10's rules for whether programs can chown files. + * src/copy.c [HAVE_PRIV_H]: Include <priv.h>. + (DO_CHOWN): Remove. Replaced by chown_failure_ok. All callers + changed. + (copy_internal): If chown failed, don't worry about what happened + to the mode bits; they can't have changed. + (chown_privileges, chown_failure_ok): New functions. + * src/copy.h: Add copyright notice. + (struct cp_options): Remove myeuid member. Add chown_privileges + member. + (chown_privileges, chown_failure_ok): New function decls. + * src/cp.c (re_protect): Remove unnecessary call to geteuid. + Use chown_failure_ok rather than our own code. + * src/cp.c (cp_options_init): Use chown_privileges rather than geteuid. + * src/install.c (cp_option_init): Likewise. + * src/mv.c (cp_option_init): Likewise. + +2005-05-29 Paul Eggert <eggert@cs.ucla.edu> + * src/chgrp.c (getgrnam) [!defined _POSIX_VERSION]: Remove decl. * src/chown-core.c (getgrnam, getgrgid) [!defined _POSIX_VERSION]: Remove decls. |