Browse Source

Use $file shorthand instead of specifying /var/backups/disklabel.$d.

Noticed by ian@
OPENBSD_3_6
millert 20 years ago
parent
commit
be9f1ce9eb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/security

+ 2
- 2
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: security,v 1.67 2004/08/25 19:17:30 millert Exp $
# $OpenBSD: security,v 1.68 2004/08/25 19:59:29 millert Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -696,7 +696,7 @@ for d in `df -ln | sed -n 's:^/dev/\([a-z]*[0-9]*\)[a-p].*$:\1:p' | sort -u`; do
file=/var/backups/disklabel.$d
CUR=$file.current
BACK=$file.backup
if disklabel $d > /var/backups/disklabel.$d 2>&1 ; then
if disklabel $d > $file 2>&1 ; then
if [ -s $CUR ] ; then
diff -u $CUR $file > $OUTPUT
if [ -s $OUTPUT ] ; then


Loading…
Cancel
Save