Force an over-the-wire transaction when resolving the root of an NFS mount
[dragonfly.git] / gnu / usr.bin / cvs / cvs / main.c.patch
1 $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/main.c.patch,v 1.2 2005/03/13 11:43:07 corecode Exp $
2 --- /usr/src/contrib/cvs-1.12.11/src/main.c     2005-01-05 22:17:44.000000000 +0100
3 +++ main.c      2005-03-07 09:06:36.000000000 +0100
4 @@ -241,6 +241,7 @@
5      "    -q           Cause CVS to be somewhat quiet.\n",
6      "    -r           Make checked-out files read-only.\n",
7      "    -w           Make checked-out files read-write (default).\n",
8 +    "    -g           Force group-write perms on checked-out files.\n",
9      "    -n           Do not execute anything that will change the disk.\n",
10      "    -t           Show trace of program execution (repeat for more\n",
11      "                 verbosity) -- try with -n.\n",
12 @@ -426,7 +427,7 @@
13      int help = 0;              /* Has the user asked for help?  This
14                                    lets us support the `cvs -H cmd'
15                                    convention to give help for cmd. */
16 -    static const char short_options[] = "+QqrwtnRvb:T:e:d:Hfz:s:xa";
17 +    static const char short_options[] = "+QqgrwtnRvb:T:e:d:Hfz:s:xa";
18      static struct option long_options[] =
19      {
20          {"help", 0, NULL, 'H'},
21 @@ -559,6 +560,13 @@
22             case 'w':
23                 cvswrite = 1;
24                 break;
25 +           case 'g':
26 +               /*
27 +                * Force full group write perms (used for shared checked-out
28 +                * source trees, see manual page)
29 +                */
30 +               umask(umask(S_IRWXG|S_IRWXO) & S_IRWXO);
31 +               break;
32             case 't':
33                 trace++;
34                 break;
35 @@ -662,12 +670,15 @@
36      if (argc < 1)
37         usage (usg);
38  
39 +/* This is just too much output */
40 +/*
41      if (readonlyfs && !really_quiet) {
42         error (0, 0,
43                "WARNING: Read-only repository access mode selected via `cvs -R'.\n\
44  Using this option to access a repository which some users write to may\n\
45  cause intermittent sandbox corruption.");
46      }
47 +*/
48  
49      /* Look up the command name. */
50