Репозитории 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 |
Группа :: Система/Основа
Пакет: util-linux
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: util-linux-ng-2.13-owl-alt-mtab-umask.patch
Скачать
Скачать
--- util-linux-ng-2.13/mount/umount.c.fix 2007-09-11 15:55:51 +0400
+++ util-linux-ng-2.13/mount/umount.c 2007-09-11 15:55:56 +0400
@@ -567,9 +567,9 @@ main (int argc, char *argv[]) {
progname = argv[0];
if ((p = strrchr(progname, '/')) != NULL)
progname = p+1;
- umask(022);
+ umask(077);
while ((c = getopt_long (argc, argv, "adfhlnrit:O:vV",
longopts, NULL)) != -1)
switch (c) {
--- util-linux-ng-2.13/mount/mount.c.fix 2007-09-11 15:55:35 +0400
+++ util-linux-ng-2.13/mount/mount.c 2007-09-11 15:55:37 +0400
@@ -1791,9 +1791,9 @@ main(int argc, char *argv[]) {
progname = argv[0];
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
Let us try to avoid getting fd's 0,1,2 */
--- util-linux-ng-2.13/mount/mount_mntent.c.fix 2007-09-11 15:54:44 +0400
+++ util-linux-ng-2.13/mount/mount_mntent.c 2007-09-11 15:54:51 +0400
@@ -95,9 +95,9 @@ unmangle(char *s) {
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);
mfp->mntent_file = xstrdup(file);