From 075843c6b5df798c6b9d833b9ba605073344ae52 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 20 Jun 2008 16:32:07 +0000 Subject: admin is only allowed on files which have an entry in CVS/Entries. ok joris --- usr.bin/cvs/admin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs') 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 * Copyright (c) 2005 Joris Vink @@ -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'", -- cgit v1.2.3