Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37748535
en ru br
Репозитории ALT
S:2.7.6.0.27.7623-alt1
5.1: 2.5.9-alt3
4.1: 2.5.9-alt3
4.0: 2.5.9-alt3
3.0: 2.5.4-ipl10mdk
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: patch

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

Патч: patch-2.5.9-mdk-backup.patch
Скачать


diff -upk.orig patch-2.5.9.orig/patch.man patch-2.5.9/patch.man
--- patch-2.5.9.orig/patch.man	2002-05-25 10:36:44 +0000
+++ patch-2.5.9/patch.man	2005-10-25 23:08:09 +0000
@@ -259,7 +259,7 @@ Make backup files.
 That is, when patching a file,
 rename or copy the original instead of removing it.
 When backing up a file that does not exist,
-an empty, unreadable backup file is created
+an empty, readonly backup file is created
 as a placeholder to represent the nonexistent file.
 See the
 .B \-V
diff -upk.orig patch-2.5.9.orig/util.c patch-2.5.9/util.c
--- patch-2.5.9.orig/util.c	2003-05-20 14:04:53 +0000
+++ patch-2.5.9/util.c	2005-10-25 23:08:09 +0000
@@ -106,7 +106,7 @@ move_file (char const *from, int volatil
 
 	  try_makedirs_errno = ENOENT;
 	  unlink (bakname);
-	  while ((fd = creat (bakname, 0)) < 0)
+	  while ((fd = creat (bakname, 0400)) < 0)
 	    {
 	      if (errno != try_makedirs_errno)
 		pfatal ("Can't create file %s", quotearg (bakname));
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin