diff options
Diffstat (limited to 'contrib/cvs/src/commit.c')
-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; |