From be55ff446e60580be83530763114e7519499398e Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 7 Nov 2006 09:28:56 +0000 Subject: zap the stat part related to file type, only keeping the usual modes. --- usr.sbin/pkg_add/pkg_create | 4 ++-- 1 file 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 # @@ -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"; } } } -- cgit v1.2.3