diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2002-02-18 21:40:09 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2002-02-18 21:40:09 +0000 |
commit | 0962b9b4af203a661167cf032e27d7c38880be51 (patch) | |
tree | 025e2f2d1fb0974afffde8f9dfa6be47799ca53d | |
parent | b1074fdbf887371665b3647fcb771882111557dd (diff) |
enable echo in signal handler, since it could be disabled
pr#1939
-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); } |