mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
enable echo in signal handler, since it could be disabled
pr#1939
This commit is contained in:
parent
b6934eeb52
commit
04a4b599da
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user