diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2006-11-07 09:28:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2006-11-07 09:28:56 +0000 |
commit | be55ff446e60580be83530763114e7519499398e (patch) | |
tree | d681f06ff3c0ed954ddda0cdd99901cecfdb259e /usr.sbin | |
parent | 7d62116756cbe1a02fc678f0052e14bd2a39fef6 (diff) |
zap the stat part related to file type, only keeping the usual modes.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 197b3789f61..395e8ffc755 100644 --- a/usr.sbin/pkg_add/pkg_create +++ b/usr.sbin/pkg_add/pkg_create @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_create,v 1.48 2006/11/05 11:41:45 espie Exp $ +# $OpenBSD: pkg_create,v 1.49 2006/11/07 09:28:55 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -62,7 +62,7 @@ sub archive if (($o->{mode} & (S_ISUID | S_ISGID | S_IWOTH)) != 0) { print STDERR "Warning: weird mode for ", $self->fullname(), ": ", - sprintf("%4o", $o->{mode}), "\n"; + sprintf("%4o", $o->{mode} & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID)), "\n"; } } } |