summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-06-20 16:32:06 +0000
committertobias <tobias@openbsd.org>2008-06-20 16:32:06 +0000
commit6d2ee45415e8eb9fa0bbb7f48dd8d829bddd6c2f (patch)
tree7643fcddb9c47b27a94366e5c33ad33eecf1f7bb
parentRemove obsolete (and erroneous) #if statement that caused all compilers (diff)
downloadwireguard-openbsd-6d2ee45415e8eb9fa0bbb7f48dd8d829bddd6c2f.tar.xz
wireguard-openbsd-6d2ee45415e8eb9fa0bbb7f48dd8d829bddd6c2f.zip
admin is only allowed on files which have an entry in CVS/Entries.
ok joris
-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'",