diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2009-03-19 09:53:17 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2009-03-19 09:53:17 +0000 |
commit | 751a338abdc152e003e2ba7329cf661e154f06c9 (patch) | |
tree | 47e258f28309f53a960280db65de57971d368822 /usr.bin/cvs/file.c | |
parent | a416ef2579f9f2fef5f7e79c894ef1d26960149b (diff) |
properly register Questionable files using CVS/Entries server-side
in order for them to show up as "? foobar" when opencvs is in server mode.
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index c7befdfd74d..49b30cff754 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.253 2009/02/21 18:26:47 joris Exp $ */ +/* $OpenBSD: file.c,v 1.254 2009/03/19 09:53:16 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -930,6 +930,11 @@ cvs_file_classify(struct cvs_file *cf, const char *tag) } } break; + case CVS_ENT_UNKNOWN: + if (cvs_server_active != 1) + fatal("server-side questionable in local mode?"); + cf->file_status = FILE_UNKNOWN; + break; default: break; } |