Merge from vendor branch READLINE:
[dragonfly.git] / gnu / usr.bin / cvs / cvs / main.c.patch
1 # $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/main.c.patch,v 1.1 2004/05/20 02:27:56 dillon Exp $
2 Index: src/main.c
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
10 @@ -248,6 +249,7 @@
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",
18 @@ -423,7 +425,7 @@
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[] =
25      {
26          {"help", 0, NULL, 'H'},
27 @@ -558,6 +560,13 @@
28             case 'w':
29                 cvswrite = 1;
30                 break;
31 +           case 'g':
32 +               /*
33 +                * Force full group write perms (used for shared checked-out
34 +                * source trees, see manual page)
35 +                */
36 +               umask(umask(S_IRWXG|S_IRWXO) & S_IRWXO);
37 +               break;
38             case 't':
39                 trace++;
40                 break;
41 @@ -668,12 +677,15 @@
42      if (argc < 1)
43         usage (usg);
44  
45 +/* This is just too much output */
46 +/*
47      if (readonlyfs && !really_quiet) {
48         error (0, 0,
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.");
52      }
53 +*/
54  
55      /* Look up the command name. */
56