summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser/rmuser.perl
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-31 19:47:01 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-31 19:47:01 +0000
commit4bd1de28cf592926d77271c7d79e3863b5971c96 (patch)
tree687b4032d8b98666cd8f4c85b56f6b99d6bae77c /usr.sbin/adduser/rmuser.perl
parent03b0982a08200b0bf593417e964ae7766119e826 (diff)
Typo, "TMP_PW" used where "NEW_PW" was intended; fixes /etc/ptmp
deletion when rmuser is aborted. From Jason DiCioccio
Diffstat (limited to 'usr.sbin/adduser/rmuser.perl')
-rw-r--r--usr.sbin/adduser/rmuser.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl
index e5feebed107..c83c06c0123 100644
--- a/usr.sbin/adduser/rmuser.perl
+++ b/usr.sbin/adduser/rmuser.perl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# -*- perl -*-
#
-# $OpenBSD: rmuser.perl,v 1.5 2002/03/05 17:23:45 millert Exp $
+# $OpenBSD: rmuser.perl,v 1.6 2002/05/31 19:47:00 millert Exp $
#
# Copyright 1995, 1996 Guy Helmer, Madison, South Dakota 57042.
# All rights reserved.
@@ -51,7 +51,7 @@ $atjob_dir = "/var/at/jobs";
#$debug = 1;
END {
- if (-e $passwd_tmp && defined(fileno(TMP_PW))) {
+ if (-e $passwd_tmp && defined(fileno(NEW_PW))) {
unlink($passwd_tmp) ||
warn "\n${whoami}: warning: couldn't unlink $passwd_tmp ($!)\n\tPlease investigate, as this file should not be left in the filesystem\n";
}