Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37048232
en ru br
Репозитории ALT
S:1.1.11-alt2
5.1: 1.1.9.832-alt3
4.1: 1.1.6-alt1
4.0: 1.1.1-alt2
www.altlinux.org/Changes

Группа :: Архивирование/Создание CD
Пакет: cdrkit

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

Патч: cdrkit-1.1.9-owl-privacy.patch
Скачать


--- cdrkit/genisoimage/write.c
+++ cdrkit/genisoimage/write.c
@@ -2061,6 +2061,11 @@ vers_write(FILE *outfile)
 
 	/* Now write the version descriptor. */
 	memset(vers, 0, sizeof (vers));
+
+	/* Per default: keep privacy. Blackout the version and arguments. */
+	if (!getenv("ISODEBUG"))
+		goto write_vers;
+
 	strcpy(vers, "MKI ");
 
 	cp = vers;
@@ -2090,14 +2095,11 @@ vers_write(FILE *outfile)
 	}
 
 	cp[SECTOR_SIZE - 1] = '\0';
- 	/* Per default: keep privacy. Blackout the version and arguments. */
-	if(getenv("ISODEBUG")) {
-		jtwrite(vers, SECTOR_SIZE, 1, 0, TRUE);
-		xfwrite(vers, SECTOR_SIZE, 1, outfile, 0, TRUE);
-	} else {
-		jtwrite(calloc(SECTOR_SIZE, 1), SECTOR_SIZE, 1, 0, TRUE);
-		xfwrite(calloc(SECTOR_SIZE, 1), SECTOR_SIZE, 1, outfile, 0, TRUE);
-	}
+
+write_vers:
+	jtwrite(vers, SECTOR_SIZE, 1, 0, TRUE);
+	xfwrite(vers, SECTOR_SIZE, 1, outfile, 0, TRUE);
+
     last_extent_written += 1;
 	return (0);
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin