diff options
author | Steven Mestdagh <steven@cvs.openbsd.org> | 2006-12-10 23:15:01 +0000 |
---|---|---|
committer | Steven Mestdagh <steven@cvs.openbsd.org> | 2006-12-10 23:15:01 +0000 |
commit | 89ef910770af6fd241542b398766d7e34f3f469c (patch) | |
tree | 8e8f5c177bf63408dead166571e9b427ffaa6229 | |
parent | 61fb8d80dc296694362194fa4edb9c12a13434e0 (diff) |
don't complain about uid/gid of symlinks.
"makes sense" sturm@, "go for it" espie@
-rw-r--r-- | usr.sbin/pkg_add/pkg_create | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_create b/usr.sbin/pkg_add/pkg_create index 395e8ffc755..d522677d868 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.49 2006/11/07 09:28:55 espie Exp $ +# $OpenBSD: pkg_create,v 1.50 2006/12/10 23:15:00 steven Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -46,13 +46,13 @@ sub archive if (defined $arc) { my $o = $arc->prepare_long($self); $o->write(); - if (!defined $self->{owner}) { + if (!defined $self->{owner} && !$o->isSymLink()) { if ($o->{uname} ne 'root' && $o->{uname} ne 'bin') { print STDERR "Warning: no \@owner for ", $self->fullname(), " (", $o->{uname}, ")\n"; } } - if (!defined $self->{group}) { + if (!defined $self->{group} && !$o->isSymLink()) { if ($o->{gname} ne 'bin' && $o->{gname} ne 'wheel') { print STDERR "Warning: no \@group for ", $self->fullname(), " (", $o->{gname}, ")\n"; |