summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-11-06 23:31:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-11-06 23:31:09 +0000
commit84a3f13de28a723165307dcd0fdae4a59e2f35c5 (patch)
tree6c04de8676a638cf4fb53c611c39887934d02d5e /usr.bin
parentcfdef2dd299382bdf1bf3084bc6e61f041466abc (diff)
change a stat() to lstat()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vi/build/recover4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/build/recover b/usr.bin/vi/build/recover
index b46e4e0cb61..41439cae9d7 100644
--- a/usr.bin/vi/build/recover
+++ b/usr.bin/vi/build/recover
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
#
-# $OpenBSD: recover,v 1.8 2001/11/05 22:43:49 millert Exp $
+# $OpenBSD: recover,v 1.9 2001/11/06 23:31:08 millert Exp $
#
# Script to (safely) recover nvi edit sessions.
#
@@ -116,7 +116,7 @@ foreach $file (readdir(RECDIR)) {
# If backup file is zero length or not a regular file, remove it.
# Else send mail to the user.
#
- if ($backup =~ m#/# || !stat($backup)) {
+ if ($backup =~ m#/# || !lstat($backup)) {
unlink($file);
} elsif ($owner != 0 && (stat(_))[4] != $owner) {
unlink($file);