Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37546591
en ru br
Репозитории ALT
S:3.08-alt5.qa1
5.1: 3.08-alt5
4.1: 3.08-alt4
4.0: 3.08-alt4
www.altlinux.org/Changes

Группа :: Издательство
Пакет: epstool

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

Патч: epstool-3.08-alt-fixes.patch
Скачать


--- epstool/src/clfile.c
+++ epstool/src/clfile.c
@@ -143,7 +143,7 @@ GFile *gfile_open(LPCTSTR lpszFileName, unsigned int nOpenFlags)
 	fd = 1;	/* stdout */
     else
         fd = open(lpszFileName, flags,
-	    S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
+	    S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH, 0600);
     if (fd == -1)
 	return NULL;
 
--- epstool/src/epstool.c
+++ epstool/src/epstool.c
@@ -2824,7 +2824,7 @@ exec_program(LPTSTR command,
 		code = -1;
 	}
 	if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
-	    handle = open(stdout_name, O_WRONLY | O_CREAT);
+	    handle = open(stdout_name, O_WRONLY | O_CREAT, 0600);
 	    hChildStdoutWr = dup2(handle, 1);
 	    if (handle != -1)
 		close(handle);
@@ -2832,7 +2832,7 @@ exec_program(LPTSTR command,
 		code = -1;
 	}
 	if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
-	    handle = open(stderr_name, O_WRONLY | O_CREAT);
+	    handle = open(stderr_name, O_WRONLY | O_CREAT, 0600);
 	    hChildStderrWr = dup2(handle, 2);
 	    if (handle != -1)
 		close(handle);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin