[BACK]Return to security CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/security between version 1.67 and 1.68

version 1.67, 2001/10/12 05:18:23 version 1.68, 2001/10/13 14:22:11
Line 805  if checkyesno check_changelist ; then
Line 805  if checkyesno check_changelist ; then
                     sed '/^type=file/!d ; s/type=file \.//'                      sed '/^type=file/!d ; s/type=file \.//'
         done > $CHANGEFILES          done > $CHANGEFILES
   
                 # Add other files which might dynamically exist, including:                  # Add other files which might dynamically exist:
                 #       /etc/ifconfig.*                  #       /etc/ifconfig.*
                 #       /etc/raid*.conf                  #       /etc/raid*.conf
                   #       /etc/rc.d/*
                 #       /etc/rc.conf.d/*                  #       /etc/rc.conf.d/*
         ls -1d $backup_dir/etc/ifconfig.*.current \                  #
             $backup_dir/etc/raid*.conf.current \          ls -1d  $backup_dir/etc/ifconfig.*.current      \
             $backup_dir/etc/rc.conf.d/*.current         2>/dev/null |                  $backup_dir/etc/raid*.conf.current      \
                   $backup_dir/etc/rc.d/*.current          \
                   $backup_dir/etc/rc.conf.d/*.current     \
               2>/dev/null |
             sed "s,^$backup_dir/,/, ; s,\.current$,," >> $CHANGEFILES              sed "s,^$backup_dir/,/, ; s,\.current$,," >> $CHANGEFILES
         ls -1d /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/* \          ls -1d  /etc/ifconfig.*         \
                   /etc/raid*.conf         \
                   /etc/rc.d/*             \
                   /etc/rc.conf.d/*        \
             2>/dev/null >> $CHANGEFILES              2>/dev/null >> $CHANGEFILES
   
                   # Add /etc/changelist
                   #
           if [ -s /etc/changelist ]; then
                   grep -v '^#' /etc/changelist >> $CHANGEFILES
           fi
   
         CHANGELIST="$CHANGEFILES $CHANGELIST"          CHANGELIST="$CHANGEFILES $CHANGELIST"
 fi  fi
   
Line 830  for file in $special_files; do
Line 843  for file in $special_files; do
         mtree -D -k type -f $file -I nomail |          mtree -D -k type -f $file -I nomail |
             sed '/^type=file/!d ; s/type=file \.//'              sed '/^type=file/!d ; s/type=file \.//'
 done >> $TMP1  done >> $TMP1
 for file in `sort -u $TMP1`; do  sort -u $TMP1 > $TMP2
   
   cat $TMP2 | while read file; do
         backup_and_diff "$file" no          backup_and_diff "$file" no
 done  done
   
   
 if [ -n "$CHANGELIST" ]; then  if [ -n "$CHANGELIST" ]; then
         cat $CHANGELIST | sort -u > $TMP1          cat $CHANGELIST | sort -u > $TMP1
           comm -23 $TMP1 $TMP2 | while read file; do
         echo "$MP" > $TMP2              # always exclude /etc/master.passwd  
         for file in $special_files; do  
                 [ ! -s $file ] && continue  
                 mtree -D -k type -f $file -I nomail |  
                     sed '/^type=file/!d ; s/type=file \.//'  
         done >> $TMP2  
         sort -u -o $TMP2 $TMP2  
   
         for file in `comm -23 $TMP1 $TMP2`; do  
                 backup_and_diff "$file" yes                  backup_and_diff "$file" yes
         done          done
 fi  fi

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

CVSweb <webmaster@jp.NetBSD.org>