summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-06-08 16:17:05 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-06-08 16:17:05 +0000
commit0aecf7e113c2ca587507ebb353476bfae4450fb4 (patch)
treeee9c2b77f8282004f5514286b5ddb48352ce3608 /usr.bin
parent6d0d0752db9a097e7e030ca713e7a554e21d16e9 (diff)
do not segfault when running status -v on non existing files.
original patch from Igor Zinovik but fixed in another way.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index 92f82fdba6e..c13d5932e32 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.83 2008/02/13 17:05:13 joris Exp $ */
+/* $OpenBSD: status.c,v 1.84 2008/06/08 16:17:04 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005-2008 Xavier Santolaria <xsa@openbsd.org>
@@ -230,7 +230,7 @@ cvs_status_local(struct cvs_file *cf)
cvs_printf(" Sticky Options:\t(none)\n");
}
- if (show_sym == 1) {
+ if (cf->file_status != FILE_UNKNOWN && show_sym == 1) {
cvs_printf("\n");
cvs_printf(" Existing Tags:\n");