1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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
This commit is contained in:
sthen 2008-03-13 19:54:34 +00:00
parent d110c1db53
commit c12bb08042

View File

@ -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);
}