Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37407327
en ru br
Репозитории ALT
S:1.11.23-alt9
5.1: 1.11.23-alt3.M50P.1
4.1: 1.11.22-alt3
4.0: 1.11.22-alt2
+updates:1.11.22-alt2
3.0: 1.11.20-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: cvs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: cvs-1.11.10-deb-owl-no-world-writables.patch
Скачать


diff -uprk.orig cvs-1.11.10.orig/src/mkmodules.c cvs-1.11.10/src/mkmodules.c
--- cvs-1.11.10.orig/src/mkmodules.c	2003-10-08 23:56:13 +0400
+++ cvs-1.11.10/src/mkmodules.c	2003-12-14 01:00:40 +0300
@@ -727,10 +727,6 @@ rename_dbmfile (temp)
     (void) sprintf (newpag, "%s.pag", temp);
     (void) sprintf (newdb, "%s.db", temp);
 
-    (void) chmod (newdir, 0666);
-    (void) chmod (newpag, 0666);
-    (void) chmod (newdb, 0666);
-
     /* don't mess with me */
     SIG_beginCrSect ();
 
@@ -951,11 +947,6 @@ init (argc, argv)
 	fp = open_file (info, "w");
 	if (fclose (fp) < 0)
 	    error (1, errno, "cannot close %s", info);
- 
-        /* Make the new history file world-writeable, since every CVS
-           user will need to be able to write to it.  We use chmod()
-           because xchmod() is too shy. */
-        chmod (info, 0666);
     }
 
     /* Make an empty val-tags file to prevent problems creating it later.  */
@@ -969,11 +960,6 @@ init (argc, argv)
 	fp = open_file (info, "w");
 	if (fclose (fp) < 0)
 	    error (1, errno, "cannot close %s", info);
- 
-        /* Make the new val-tags file world-writeable, since every CVS
-           user will need to be able to write to it.  We use chmod()
-           because xchmod() is too shy. */
-        chmod (info, 0666);
     }
 
     free (info);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin