diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-10-25 06:24:11 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-10-25 06:24:11 +0000 |
commit | 9515a35166c42cc1b468cd38c11adc4b625b16b0 (patch) | |
tree | 121e2fea5385a372ef17cb37d1c4712e46a18f8f /contrib/cvs/src/commit.c | |
parent | 99ad33d010b3a5ca1ecfbc4c013839472a434aac (diff) |
Notes
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 ac7c7faff212e..6b674e15c856c 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; |