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