Preserve sticky bit for cp -pR'. It was already preserved for
cp -R'.
This also fixes loss of the sticky bit for `mv' across file systems.
This commit is contained in:
parent
001aff9ffc
commit
eca0f5097e
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: utils.c,v 1.3 1995/05/30 00:06:22 rgrimes Exp $
|
||||
* $Id: utils.c,v 1.4 1995/06/14 05:41:27 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -241,7 +241,8 @@ setfile(fs, fd)
|
||||
int rval;
|
||||
|
||||
rval = 0;
|
||||
fs->st_mode &= S_ISUID | S_ISGID | S_IRWXU | S_IRWXG | S_IRWXO;
|
||||
fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
|
||||
S_IRWXU | S_IRWXG | S_IRWXO;
|
||||
|
||||
TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec);
|
||||
TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec);
|
||||
|
Loading…
Reference in New Issue
Block a user