OSSP CVS Repository

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

ossp-pkg/shtool/sh.rotate 1.6 -> 1.7

--- sh.rotate    2003/04/04 16:36:01     1.6
+++ sh.rotate    2003/04/29 08:01:01     1.7
@@ -182,7 +182,7 @@
     #   optionally take logfile size into account
     if [ ".$opt_s" != . ]; then
         #   determine size of logfile
-        set -- `/bin/ls -l "$ldir/$file" | sed -e "s;$ldir/$file;;" |\
+        set -- `env -i /bin/ls -l "$ldir/$file" | sed -e "s;$ldir/$file;;" |\
                 sed -e 's; -> .*$;;' -e 's;[    ][      ]*; ;g'`
         n=`expr $# - 3`
         eval "size=\`echo \${$n}\`"

CVSTrac 2.0.1