summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-07-15 13:10:56 +0000
committerjoris <joris@openbsd.org>2005-07-15 13:10:56 +0000
commit94e2f6f7961fed9fff76799a6b542f3681424885 (patch)
treeac668876ad850223b5d3e815a4f827fed7da2031 /usr.bin/cvs/file.c
parent- use cvs_path_cat() where appropriate instead of snprintf() (diff)
downloadwireguard-openbsd-94e2f6f7961fed9fff76799a6b542f3681424885.tar.xz
wireguard-openbsd-94e2f6f7961fed9fff76799a6b542f3681424885.zip
if the file has been added but is not on disk make sure we can pick it up
as being "added". fixes the log command on our server-side for added files. tested & ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 23f6fc261ac..ee0ac071ffe 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.95 2005/07/07 20:24:35 joris Exp $ */
+/* $OpenBSD: file.c,v 1.96 2005/07/15 13:10:56 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1131,6 +1131,8 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent)
cfp->cf_cvstat = CVS_FST_REMOVED;
else if (ent->ce_status == CVS_ENT_UPTODATE)
cfp->cf_cvstat = CVS_FST_UPTODATE;
+ else if (ent->ce_status == CVS_ENT_ADDED)
+ cfp->cf_cvstat = CVS_FST_ADDED;
else
cfp->cf_cvstat = CVS_FST_LOST;
}