[BACK]Return to security CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/Attic/security between version 1.36 and 1.37

version 1.36, 2000/05/26 14:54:17 version 1.37, 2000/06/18 06:33:34
Line 633 
Line 633 
 # List of files that get backed up and checked for any modifications.  Each  # List of files that get backed up and checked for any modifications.  Each
 # file is expected to have two backups, /var/backups/file.{current,backup}.  # file is expected to have two backups, /var/backups/file.{current,backup}.
 # Any changes cause the files to rotate.  # Any changes cause the files to rotate.
   _fnchg() {
           echo "$1" | sed 's/^\///;s/\//_/g'
   }
 if [ -s /etc/changelist ] ; then  if [ -s /etc/changelist ] ; then
         for file in `egrep -v "^#|$MP" /etc/changelist`; do          for file in `egrep -v "^#|$MP" /etc/changelist`; do
                 CUR=/var/backups/`basename $file`.current                  CUR=/var/backups/$(_fnchg  "$file").current
                 BACK=/var/backups/`basename $file`.backup                  BACK=/var/backups/$(_fnchg "$file").backup
                 if [ -s $file ] ; then                  if [ -s $file -a ! -d $file ] ; then
                         if [ -s $CUR ] ; then                          if [ -s $CUR ] ; then
                                 diff $CUR $file > $OUTPUT                                  diff $CUR $file > $OUTPUT
                                 if [ -s $OUTPUT ] ; then                                  if [ -s $OUTPUT ] ; then

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37