Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37568796
en ru br
Репозитории ALT
S:2.39.2-alt1
5.1: 2.16.1-alt1
4.1: 2.13-alt8
4.0: 2.12r-alt6
3.0: 2.12q-alt1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: util-linux

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

Патч: util-linux-2.22-owl-alt-mtab-umask-for-mount-deprecated.patch
Скачать


diff -ur util-linux-2.22/mount-deprecated/mount.c util-linux-2.22.new/mount-deprecated/mount.c
--- util-linux-2.22/mount-deprecated/mount.c	2012-09-12 17:26:01.000000000 +0400
+++ util-linux-2.22.new/mount-deprecated/mount.c	2012-09-12 17:33:31.536994726 +0400
@@ -2402,7 +2402,7 @@
 	if ((p = strrchr(progname, '/')) != NULL)
 		progname = p+1;
 
-	umask(022);
+	umask(077);
 
 	/* People report that a mount called from init without console
 	   writes error messages to /etc/mtab
diff -ur util-linux-2.22/mount-deprecated/mount_mntent.c util-linux-2.22.new/mount-deprecated/mount_mntent.c
--- util-linux-2.22/mount-deprecated/mount_mntent.c	2012-09-12 17:26:01.000000000 +0400
+++ util-linux-2.22.new/mount-deprecated/mount_mntent.c	2012-09-12 17:34:06.096714286 +0400
@@ -39,7 +39,7 @@
 mntFILE *
 my_setmntent (const char *file, char *mode) {
 	mntFILE *mfp = xmalloc(sizeof(*mfp));
-	mode_t old_umask = umask(077);
+	mode_t old_umask = umask(033);
 
 	mfp->mntent_fp = fopen(file, mode);
 	umask(old_umask);
diff -ur util-linux-2.22/mount-deprecated/umount.c util-linux-2.22.new/mount-deprecated/umount.c
--- util-linux-2.22/mount-deprecated/umount.c	2012-09-12 17:26:01.000000000 +0400
+++ util-linux-2.22.new/mount-deprecated/umount.c	2012-09-12 17:32:55.929283669 +0400
@@ -777,7 +777,7 @@
 	if ((p = strrchr(progname, '/')) != NULL)
 		progname = p+1;
 
-	umask(022);
+	umask(077);
 
 	while ((c = getopt_long (argc, argv, "adfhlnrit:O:vV",
 				 longopts, NULL)) != -1)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin