From 6976901e20cc15463b642b400dc92ad889d2bf7c Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 25 Oct 1999 06:24:11 +0000 Subject: If running on the client side of a remote commit, don't reject root when trying to do a commit. The server side will use the correct name, and the client side restriction is just an annoyance. Requested by: lots of folks --- contrib/cvs/src/commit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contrib/cvs/src') diff --git a/contrib/cvs/src/commit.c b/contrib/cvs/src/commit.c index ac7c7fa..6b674e1 100644 --- a/contrib/cvs/src/commit.c +++ b/contrib/cvs/src/commit.c @@ -12,6 +12,7 @@ * * The call is: cvs commit [options] files... * + * $FreeBSD$ */ #include @@ -340,7 +341,11 @@ commit (argc, argv) /* FIXME: Shouldn't this check be much more closely related to the readonly user stuff (CVSROOT/readers, &c). That is, why should root be able to "cvs init", "cvs import", &c, but not "cvs ci"? */ - if (geteuid () == (uid_t) 0) + if (geteuid () == (uid_t) 0 +#ifdef CLIENT_SUPPORT + && !client_active +#endif + ) { struct passwd *pw; -- cgit v1.1