summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-08-25 19:59:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-08-25 19:59:30 +0000
commit930e4f604c5f3cb1766c1846f68537bc43b9aaa4 (patch)
treee2b51473909eb7a6f91533c94ed5f03c6c0b17e6
parent1db04095f289e2bb82e5d52643d6b980138b5ea5 (diff)
Use $file shorthand instead of specifying /var/backups/disklabel.$d.
Noticed by ian@
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 2a2e5b51c6e..71ced78980f 100644
--- a/etc/security
+++ b/etc/security
@@ -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