diff options
author | peter <peter@FreeBSD.org> | 1998-05-27 15:26:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-27 15:26:12 +0000 |
commit | 66f8d308b9183c6079bfc2b9122ce47da0562d2c (patch) | |
tree | 9a18817fdc5fbd9076ad1bf1c6d5b687340205a6 /contrib/cvs/src/main.c | |
parent | 474b0e97b33ea1b8cf3639ea1281615f977d2255 (diff) | |
download | FreeBSD-src-66f8d308b9183c6079bfc2b9122ce47da0562d2c.zip FreeBSD-src-66f8d308b9183c6079bfc2b9122ce47da0562d2c.tar.gz |
Add a new long flag that causes cvs to ignore the CVSROOT/passwd file.
This is mostly intended for use on freefall where we'd like to provide
a passwd file for easy anoncvs mirroring access, but don't want to open
up the pserver on freefall itself.
While here, some initial tweaks intended for allowing an empty pserver
password. I'm not sure that this works yet.
Diffstat (limited to 'contrib/cvs/src/main.c')
-rw-r--r-- | contrib/cvs/src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/cvs/src/main.c b/contrib/cvs/src/main.c index 30358c5..8136f5f 100644 --- a/contrib/cvs/src/main.c +++ b/contrib/cvs/src/main.c @@ -41,6 +41,7 @@ int quiet = 0; int trace = 0; int noexec = 0; int readonlyfs = 0; +int require_real_user = 0; int logoff = 0; mode_t cvsumask = UMASK_DFLT; @@ -479,7 +480,7 @@ main (argc, argv) opterr = 1; while ((c = getopt_long - (argc, argv, "+QqrwtnRlvb:T:e:d:Hfz:s:xa", long_options, &option_index)) + (argc, argv, "+QqrwtnRlvb:T:e:d:Hfz:s:xaU", long_options, &option_index)) != EOF) { switch (c) @@ -602,6 +603,11 @@ Copyright (c) 1989-1998 Brian Berliner, david d `zoo' zuhn, \n\ We will issue an error later if stream authentication is not supported. */ break; + case 'U': +#ifdef SERVER_SUPPORT + require_real_user = 1; +#endif + break; case '?': default: usage (usg); |