[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.113 and 1.114

version 1.113, 2013/09/08 08:19:40 version 1.114, 2013/11/06 19:30:20
Line 337  if checkyesno check_group; then
Line 337  if checkyesno check_group; then
         fi          fi
   
         awk -F: '{ print $1 }' $GRP | sort | uniq -d > $OUTPUT          awk -F: '{ print $1 }' $GRP | sort | uniq -d > $OUTPUT
         if [ -s $OUTPUT ] ; then          dupgroups=""
           for group in $(cat $OUTPUT) ; do
                   gcount=$(awk -F: "/$group/ { print \$1,\$3 }" $GRP | sort -u | wc -l)
                   if [ $gcount -gt 1 ]; then
                           dupgroups="$dupgroups $group"
                   fi
           done
           if [ ! -z $dupgroups ] ; then
                 printf "\n$GRP has duplicate group names.\n"                  printf "\n$GRP has duplicate group names.\n"
                 column $OUTPUT                  printf "$dupgroups\n"
         fi          fi
 fi  fi
   

Legend:
Removed from v.1.113  
changed lines
  Added in v.1.114

CVSweb <webmaster@jp.NetBSD.org>