diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-09-14 22:47:49 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-09-14 22:47:49 +0000 |
commit | 207e0970bcbf55a5ea60e4e2c7468f11dc5349f6 (patch) | |
tree | 77978796088d8e7046a0f46a3846cd17bfa1d82b /usr.sbin | |
parent | ca64a47efc4bd176463abac5e9c59134fcb770a4 (diff) |
report issues while installing configuration files.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index 8600fdc9dd1..f81d1a137df 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.51 2004/09/14 22:46:12 espie Exp $ +# $OpenBSD: pkg_add,v 1.52 2004/09/14 22:47:48 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -136,7 +136,9 @@ sub install if ($not) { print "The configuration file $filename would be installed from $origname\n"; } else { - copy($origname, $filename); + if (!copy($origname, $filename)) { + print STDERR "Configuration file $filename could not be installed:\n\t$!\n"; + } $self->set_modes($filename); print "The configuration file $filename has been installed from $origname\n"; } |