Группа :: Система/Основа
Пакет: util-linux
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: util-linux-2.12-owl-alt-mtab-umask.patch
diff -Naur util-linux-2.12/mount/mntent.c util-linux-2.12.new/mount/mntent.c
--- util-linux-2.12/mount/mntent.c 2003-07-06 00:17:36 +0400
+++ util-linux-2.12.new/mount/mntent.c 2004-03-03 16:49:07 +0300
@@ -96,7 +96,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 -Naur util-linux-2.12/mount/mount.c util-linux-2.12.new/mount/mount.c
--- util-linux-2.12/mount/mount.c 2003-07-16 01:38:48 +0400
+++ util-linux-2.12.new/mount/mount.c 2004-03-03 16:37:16 +0300
@@ -1434,7 +1434,7 @@
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- umask(033);
+ umask(077);
/* People report that a mount called from init without console
writes error messages to /etc/mtab
diff -Naur util-linux-2.12/mount/umount.c util-linux-2.12.new/mount/umount.c
--- util-linux-2.12/mount/umount.c 2004-03-03 16:49:29 +0300
+++ util-linux-2.12.new/mount/umount.c 2004-03-03 16:37:16 +0300
@@ -638,7 +638,7 @@
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- umask(033);
+ umask(077);
while ((c = getopt_long (argc, argv, "adfhlnrt:O:vV",
longopts, NULL)) != -1)