summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-20 16:32:07 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-20 16:32:07 +0000
commit075843c6b5df798c6b9d833b9ba605073344ae52 (patch)
tree8693d2a002debbea125874bd8a3c9d03f161cf5c /usr.bin
parent20155de3b99b703007ca6c357440ddd81b12a024 (diff)
admin is only allowed on files which have an entry in CVS/Entries.
ok joris
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/admin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c
index cf78de7d35e..1199fa92c2c 100644
--- a/usr.bin/cvs/admin.c
+++ b/usr.bin/cvs/admin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: admin.c,v 1.62 2008/06/14 04:34:08 tobias Exp $ */
+/* $OpenBSD: admin.c,v 1.63 2008/06/20 16:32:06 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
@@ -214,7 +214,7 @@ cvs_admin_local(struct cvs_file *cf)
return;
}
- if (cf->file_status == FILE_UNKNOWN)
+ if (cf->file_ent == NULL)
return;
else if (cf->file_status == FILE_ADDED) {
cvs_log(LP_ERR, "cannot admin newly added file `%s'",