=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.122 retrieving revision 1.123 diff -c -r1.122 -r1.123 *** src/etc/netstart 2008/07/23 16:05:47 1.122 --- src/etc/netstart 2008/08/14 00:59:50 1.123 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.122 2008/07/23 16:05:47 sthen Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: netstart,v 1.123 2008/08/14 00:59:50 sthen Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout *************** *** 40,46 **** echo "netstart: $file: No such file or directory" return fi ! if [ "$(stat -Lf "%SLp %u %g" $file)" != "--- 0 0" ]; then echo "WARNING: $file is insecure, fixing permissions" chmod -LR o-rwx $file chown -LR root.wheel $file --- 40,48 ---- echo "netstart: $file: No such file or directory" return fi ! # Not using stat(1), we can't rely on having /usr yet ! set -A stat -- `ls -nL $file` ! if [ "${stat[0]#???????} ${stat[2]} ${stat[3]}" != "--- 0 0" ]; then echo "WARNING: $file is insecure, fixing permissions" chmod -LR o-rwx $file chown -LR root.wheel $file