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

Группа :: Система/Основа
Пакет: ttmkfdir

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

Патч: ttmkfdir-3.0.9-segfaults.patch
Скачать


--- ttmkfdir-3.0.9/directory.cpp.back	2005-10-08 14:25:37.839328408 +0800
+++ ttmkfdir-3.0.9/directory.cpp	2005-10-08 14:26:00.021956136 +0800
@@ -1,5 +1,6 @@
 #include <cctype>
 #include <dirent.h>
+#include <stdio.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
@@ -13,6 +14,10 @@
 directory::scan (const std::string &dir)
 {
     DIR *ttfdir = opendir(dir.c_str ());
+    if (!ttfdir) {
+        printf("%s is not exist!\n", dir.c_str ());
+        exit(-1);
+    }
 
     this->clear ();
     dirpath = dir;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin