summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-10-03 12:55:01 +0000
committerBruce Evans <bde@FreeBSD.org>1995-10-03 12:55:01 +0000
commiteca0f5097e93484ece87d5956070eaa6104b7f17 (patch)
tree4ed18e038b22dd383b42c0f4760dcccb6764b556 /bin
parent001aff9ffc761d44c83f93660932bc0fddb043d9 (diff)
downloadsrc-test2-eca0f5097e93484ece87d5956070eaa6104b7f17.tar.gz
src-test2-eca0f5097e93484ece87d5956070eaa6104b7f17.zip
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cp/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index 600f9995f313..ca2d2c5bc845 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -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);