diff options
author | peter <peter@FreeBSD.org> | 1999-10-25 06:24:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-10-25 06:24:11 +0000 |
commit | 6976901e20cc15463b642b400dc92ad889d2bf7c (patch) | |
tree | 121e2fea5385a372ef17cb37d1c4712e46a18f8f /contrib/cvs/src | |
parent | 3304242c3e83d781f2cff3f3461bff2968d11b83 (diff) | |
download | FreeBSD-src-6976901e20cc15463b642b400dc92ad889d2bf7c.zip FreeBSD-src-6976901e20cc15463b642b400dc92ad889d2bf7c.tar.gz |
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
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r-- | contrib/cvs/src/commit.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <assert.h> @@ -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; |