summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2008-03-13 19:54:34 +0000
committersthen <sthen@openbsd.org>2008-03-13 19:54:34 +0000
commitc12bb08042a92753059be085f5e318cde0e890a0 (patch)
tree01491d03f77f30e47621a202eaa85c9b6c2e1889 /usr.bin/cvs/diff.c
parentAdd __data_start symbol to all ELF archs to consistently mark the beginning (diff)
downloadwireguard-openbsd-c12bb08042a92753059be085f5e318cde0e890a0.tar.xz
wireguard-openbsd-c12bb08042a92753059be085f5e318cde0e890a0.zip
when a file was locally removed and a diff was done against
an opencvs server (with either gnu or opencvs as the client), no actual diff output was produced. traced to the typo fixed in this diff. ok joris
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 21a84a0187a..9a734327786 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.133 2008/03/02 19:05:34 tobias Exp $ */
+/* $OpenBSD: diff.c,v 1.134 2008/03/13 19:54:34 sthen Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -445,7 +445,7 @@ cvs_diff_local(struct cvs_file *cf)
xfree(p2);
close(fd2);
(void)xasprintf(&p2, "%s", CVS_PATH_DEVNULL);
- if ((fd1 = open(p2, O_RDONLY)) == -1)
+ if ((fd2 = open(p2, O_RDONLY)) == -1)
fatal("cvs_diff_local: cannot open %s",
CVS_PATH_DEVNULL);
}