summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-09-06 12:21:21 +0000
committerdd <dd@FreeBSD.org>2001-09-06 12:21:21 +0000
commitea699b6bd491608a72a1d132bdb1101267e679b9 (patch)
treea663e79165317d6fe8d4661588c7a3fa5b46e0bc /usr.sbin/adduser
parent5787ab3545bbbcc24d7260e8e596c0a7a0a977ca (diff)
downloadFreeBSD-src-ea699b6bd491608a72a1d132bdb1101267e679b9.zip
FreeBSD-src-ea699b6bd491608a72a1d132bdb1101267e679b9.tar.gz
Print the correct filename if we fail to open $etc_passwd.
Submitted by: Brian Poole <raj@cerias.purdue.edu>
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index b0dc174..8e54d09 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -235,7 +235,7 @@ sub passwd_read {
local($p_username, $pw, $p_uid, $p_gid, $sh, %shlist);
print "Check $etc_passwd\n" if $verbose;
- open(P, "$etc_passwd") || die "$passwd: $!\n";
+ open(P, "$etc_passwd") || die "$etc_passwd: $!\n";
while(<P>) {
chop;
OpenPOWER on IntegriCloud