summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/status.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2009-01-14 00:23:31 +0000
committerJoris Vink <joris@cvs.openbsd.org>2009-01-14 00:23:31 +0000
commit296d6e5d940bdd817eb8f4768769527b997be2cf (patch)
treec732db344f33c5cff48fbfb8d233884994e67cb5 /usr.bin/cvs/status.c
parent6bede512b7c9fe17943b80ccb98b6bc7f8c30ac4 (diff)
fix printing status on removed files by default;
slighty different diff applied then what the bug author provided us. thanks & closes pr 6038
Diffstat (limited to 'usr.bin/cvs/status.c')
-rw-r--r--usr.bin/cvs/status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index b51a2d1adae..288d6bc6475 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.88 2008/06/14 04:34:08 tobias Exp $ */
+/* $OpenBSD: status.c,v 1.89 2009/01/14 00:23:30 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005-2008 Xavier Santolaria <xsa@openbsd.org>
@@ -134,6 +134,10 @@ cvs_status_local(struct cvs_file *cf)
return;
}
+ if (cf->file_status == FILE_UPTODATE && cf->fd == -1 &&
+ cf->user_supplied == 0)
+ return;
+
if (cf->file_rcs != NULL)
head = rcs_head_get(cf->file_rcs);
else