diff options
author | 2007-05-26 20:45:26 +0000 | |
---|---|---|
committer | 2007-05-26 20:45:26 +0000 | |
commit | f7a8994e80073f9cbae987d5af3936e842352576 (patch) | |
tree | aa8d6cde3cd617a96de06bf830659f919e726d38 | |
parent | tht works (diff) | |
download | wireguard-openbsd-f7a8994e80073f9cbae987d5af3936e842352576.tar.xz wireguard-openbsd-f7a8994e80073f9cbae987d5af3936e842352576.zip |
cvs_server_path is more appropriate to check than cvs_server_active.
From Tobias Stoeckmann.
OK niallo@
-rw-r--r-- | usr.bin/cvs/cvs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index 52ebdaf61f3..0a6f391e901 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.123 2007/05/22 16:47:22 xsa Exp $ */ +/* $OpenBSD: cvs.c,v 1.124 2007/05/26 20:45:26 ray Exp $ */ /* * Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -104,12 +104,13 @@ cvs_cleanup(void) cvs_log(LP_TRACE, "cvs_cleanup: removing temp files"); cvs_worklist_run(&temp_files, cvs_worklist_unlink); - if (cvs_server_active) { + if (cvs_server_path != NULL) { if (cvs_rmdir(cvs_server_path) == -1) cvs_log(LP_ERR, "warning: failed to remove server directory: %s", cvs_server_path); xfree(cvs_server_path); + cvs_server_path = NULL; } } |