diff options
author | ericj <ericj@openbsd.org> | 2002-02-18 21:40:08 +0000 |
---|---|---|
committer | ericj <ericj@openbsd.org> | 2002-02-18 21:40:08 +0000 |
commit | 04a4b599da5ce920ac248b859b6f6ceca4abc675 (patch) | |
tree | b8b5353514d0489becef8cf69f437de7ba88b5fb /usr.sbin/adduser | |
parent | qmail no more; PR 2275 (diff) | |
download | wireguard-openbsd-04a4b599da5ce920ac248b859b6f6ceca4abc675.tar.xz wireguard-openbsd-04a4b599da5ce920ac248b859b6f6ceca4abc675.zip |
enable echo in signal handler, since it could be disabled
pr#1939
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r-- | usr.sbin/adduser/adduser.perl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl index 676503e0e6d..2be1ffb87e2 100644 --- a/usr.sbin/adduser/adduser.perl +++ b/usr.sbin/adduser/adduser.perl @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $OpenBSD: adduser.perl,v 1.34 2001/10/09 18:25:31 millert Exp $ +# $OpenBSD: adduser.perl,v 1.35 2002/02/18 21:40:08 ericj Exp $ # # Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin. # All rights reserved. @@ -89,7 +89,7 @@ sub variables { $group = "/etc/group"; $pwd_mkdb = "pwd_mkdb -p"; # program for building passwd database $encryptionmethod = "blowfish"; - $rcsid = '$OpenBSD: adduser.perl,v 1.34 2001/10/09 18:25:31 millert Exp $'; + $rcsid = '$OpenBSD: adduser.perl,v 1.35 2002/02/18 21:40:08 ericj Exp $'; # List of directories where shells located @path = ('/bin', '/usr/bin', '/usr/local/bin'); @@ -1530,6 +1530,7 @@ sub cleanup { local($sig) = @_; print STDERR "Caught signal SIG$sig -- cleaning up.\n"; + system("stty", "echo"); exit(0); } |