Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d be consistent with other scripts when temporarily s...



details:   https://anonhg.NetBSD.org/src/rev/b1cc3e12a5dd
branches:  trunk
changeset: 509073:b1cc3e12a5dd
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Apr 25 23:27:37 2001 +0000

description:
be consistent with other scripts when temporarily setting umask to 022

diffstat:

 etc/rc.d/sshd |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 82645b66b6b9 -r b1cc3e12a5dd etc/rc.d/sshd
--- a/etc/rc.d/sshd     Wed Apr 25 23:23:37 2001 +0000
+++ b/etc/rc.d/sshd     Wed Apr 25 23:27:37 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sshd,v 1.11 2001/04/25 23:18:50 lukem Exp $
+# $NetBSD: sshd,v 1.12 2001/04/25 23:27:37 lukem Exp $
 #
 
 # PROVIDE: sshd
@@ -17,7 +17,7 @@
 
 sshd_keygen()
 {
-       _omask=`umask`
+       (
        umask 022
        if [ -f /etc/ssh_host_key ]; then
                echo "You already have an RSA host key in /etc/ssh_host_key"
@@ -39,7 +39,7 @@
        else
                /usr/bin/ssh-keygen -t rsa -f /etc/ssh_host_rsa_key -N ''
        fi
-       umask $_omask
+       )
 }
 
 sshd_precmd()



Home | Main Index | Thread Index | Old Index