]>
Commit | Line | Data |
---|---|---|
3a862a5e AM |
1 | # Don't make history and val-tags files world-writable when creating a |
2 | # new repository. (Closes: #125892) | |
3 | # | |
4 | # Author unknown, probably Eric Gillespie, Jr. <epg@debian.org> | |
5 | diff -ruN cvs-1.12.13-old/src/mkmodules.c cvs-1.12.13/src/mkmodules.c | |
6 | --- cvs-1.12.13-old/src/mkmodules.c 2005-05-25 04:59:01.000000000 +0800 | |
7 | +++ cvs-1.12.13/src/mkmodules.c 2006-02-26 22:27:55.000000000 +0800 | |
8 | @@ -1249,11 +1249,6 @@ | |
9 | fp = xfopen (info, "w"); | |
10 | if (fclose (fp) < 0) | |
11 | error (1, errno, "cannot close %s", info); | |
12 | - | |
13 | - /* Make the new history file world-writeable, since every CVS | |
14 | - user will need to be able to write to it. We use chmod() | |
15 | - because xchmod() is too shy. */ | |
16 | - chmod (info, 0666); | |
17 | } | |
18 | ||
19 | /* Make an empty val-tags file to prevent problems creating it later. */ | |
20 | @@ -1267,11 +1262,6 @@ | |
21 | fp = xfopen (info, "w"); | |
22 | if (fclose (fp) < 0) | |
23 | error (1, errno, "cannot close %s", info); | |
24 | - | |
25 | - /* Make the new val-tags file world-writeable, since every CVS | |
26 | - user will need to be able to write to it. We use chmod() | |
27 | - because xchmod() is too shy. */ | |
28 | - chmod (info, 0666); | |
29 | } | |
30 | ||
31 | free (info); |