diff options
author | 2005-10-11 14:27:59 +0000 | |
---|---|---|
committer | 2005-10-11 14:27:59 +0000 | |
commit | 29a37f6a2a6ff4e5e27ddf6976f629897189729a (patch) | |
tree | a8c9c9f31980ca1b7c1057f199c2960627d5e027 | |
parent | export diff_file variable so it can be set from without diff functions; (diff) | |
download | wireguard-openbsd-29a37f6a2a6ff4e5e27ddf6976f629897189729a.tar.xz wireguard-openbsd-29a37f6a2a6ff4e5e27ddf6976f629897189729a.zip |
correctly set the filename by setting the diff_file variable;
fixes the (null) stuff seen when using rcsdiff;
ok niallo@
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 22aa5c93bd5..710fe5b2a85 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.7 2005/10/09 20:55:27 niallo Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.8 2005/10/11 14:27:59 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -113,6 +113,8 @@ rcsdiff_main(int argc, char **argv) else frev = rev; + diff_file = argv[i]; + if (rev2 == NULL) { if (rcsdiff_file(file, frev, argv[i]) < 0) { cvs_log(LP_ERR, "failed to rcsdiff"); |