fix variable declaration (leftover from break out of touch_key_file_or_fail)
authorJameson Rollins <jrollins@finestructure.net>
Fri, 29 Oct 2010 23:10:52 +0000 (19:10 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 29 Oct 2010 23:10:52 +0000 (19:10 -0400)
src/share/common
src/share/m/update_known_hosts

index f8ae9dfdb5bc1a0360fd1d1daf9a0521a7277d31..b26b57e2a42bc5be6ca3c1fe93f3d9e32f5ce86d 100644 (file)
@@ -384,6 +384,8 @@ test_gpg_expire() {
 # directories with correct permissions
 touch_key_file_or_fail() {
     local keyFile="$1"
+    local newUmask
+
     if [ ! -f "$keyFile" ]; then
        # make sure to create files and directories with the
        # appropriate write bits turned off:
index 57176b8f8346041157ad7e0a1792c74f6931e808..d167ae011b1297e947bc966dddf2fea15df79995 100644 (file)
@@ -17,7 +17,6 @@ update_known_hosts() {
     local returnCode=0
     local fileCheck
     local host
-    local newUmask
 
     # touch the known_hosts file so that the file permission check
     # below won't fail upon not finding the file