OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.install versions 1.16 and 1.17
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/sh.install 1.16 -> 1.17

--- sh.install   2000/06/14 18:43:24     1.16
+++ sh.install   2000/11/18 16:46:09     1.17
@@ -28,7 +28,7 @@
 opt_c=no
 opt_C=no
 opt_s=no
-opt_m=""
+opt_m="0755"
 opt_o=""
 opt_g=""
 opt_e=""
@@ -111,7 +111,6 @@
     fi
 
     #  Adjust the target file
-    #  (we do chmod last to preserve setuid bits)
     if [ ".$opt_s" = .yes ]; then
         if [ ".$opt_t" = .yes ]; then
             echo "strip $dsttmp" 1>&2
@@ -130,12 +129,10 @@
         fi
         chgrp $opt_g $dsttmp || exit $?
     fi
-    if [ ".$opt_m" != . ]; then
-        if [ ".$opt_t" = .yes ]; then
-            echo "chmod $opt_m $dsttmp" 1>&2
-        fi
-        chmod $opt_m $dsttmp || exit $?
+    if [ ".$opt_t" = .yes ]; then
+        echo "chmod $opt_m $dsttmp" 1>&2
     fi
+    chmod $opt_m $dsttmp || exit $?
 
     #   Determine whether to do a quick install
     #   (has to be done _after_ the strip was already done)

CVSTrac 2.0.1