Browse Source

Todd, Aaron, Dug, and me all prefer unidiff

OPENBSD_2_9
marc 24 years ago
parent
commit
39a1183d94
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/security

+ 3
- 3
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: security,v 1.41 2000/10/20 16:27:16 millert Exp $
# $OpenBSD: security,v 1.42 2000/12/17 22:35:19 marc Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93 # from: @(#)security 8.1 (Berkeley) 6/9/93
# #
@ -644,9 +644,9 @@ if [ -s /etc/changelist ] ; then
BACK=/var/backups/$(_fnchg "$file").backup BACK=/var/backups/$(_fnchg "$file").backup
if [ -s $file -a ! -d $file ] ; then if [ -s $file -a ! -d $file ] ; then
if [ -s $CUR ] ; then if [ -s $CUR ] ; then
diff $CUR $file > $OUTPUT
diff -u $CUR $file > $OUTPUT
if [ -s $OUTPUT ] ; then if [ -s $OUTPUT ] ; then
echo "\n======\n${file} diffs (OLD < > NEW)\n======"
echo "\n======\n${file} diffs (-OLD +NEW)\n======"
cat $OUTPUT cat $OUTPUT
cp -p $CUR $BACK cp -p $CUR $BACK
cp -p $file $CUR cp -p $file $CUR


Loading…
Cancel
Save