1 # $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/main.c.patch,v 1.1 2004/05/20 02:27:56 dillon Exp $
3 ===================================================================
4 RCS file: /cvs/src/contrib/cvs/src/main.c,v
5 retrieving revision 1.1.1.2
6 retrieving revision 1.6
7 diff -u -r1.1.1.2 -r1.6
8 --- src/main.c 20 Jan 2004 05:37:27 -0000 1.1.1.2
9 +++ src/main.c 30 Jan 2004 17:13:35 -0000 1.6
11 " -q Cause CVS to be somewhat quiet.\n",
12 " -r Make checked-out files read-only.\n",
13 " -w Make checked-out files read-write (default).\n",
14 + " -g Force group-write perms on checked-out files.\n",
15 " -n Do not execute anything that will change the disk.\n",
16 " -t Show trace of program execution (repeat for more\n",
17 " verbosity) -- try with -n.\n",
19 int help = 0; /* Has the user asked for help? This
20 lets us support the `cvs -H cmd'
21 convention to give help for cmd. */
22 - static const char short_options[] = "+QqrwtnRvb:T:e:d:Hfz:s:xa";
23 + static const char short_options[] = "+QqgrwtnRvb:T:e:d:Hfz:s:xa";
24 static struct option long_options[] =
26 {"help", 0, NULL, 'H'},
33 + * Force full group write perms (used for shared checked-out
34 + * source trees, see manual page)
36 + umask(umask(S_IRWXG|S_IRWXO) & S_IRWXO);
45 +/* This is just too much output */
47 if (readonlyfs && !really_quiet) {
49 "WARNING: Read-only repository access mode selected via `cvs -R'.\n\
50 Using this option to access a repository which some users write to may\n\
51 cause intermittent sandbox corruption.");
55 /* Look up the command name. */