Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37520295
en ru br
Репозитории ALT
S:4.8.30-alt3
5.1: 4.8.11-alt0.M51.1
4.1: 4.6.2-alt7.pre1
4.0: 4.6.1r-alt9
3.0: 4.6.1r-alt3
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: mc

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

Патч: mc-4.6.1-alt-vfs.patch
Скачать


--- mc/vfs/vfs.c.orig	2008-02-24 16:47:23 +0500
+++ mc/vfs/vfs.c	2008-03-16 22:18:11 +0500
@@ -357,6 +357,11 @@ int mc_##name inarg \
     int result; \
     char *mpath = vfs_canon (path); \
     vfs = vfs_get_class (mpath); \
+    if (!vfs) \
+    { \
+	g_free(mpath); \
+	return -1; \
+    } \
     result = vfs->name ? (*vfs->name)callarg : -1; \
     g_free (mpath); \
     if (result == -1) \
@@ -383,6 +388,8 @@ int mc_##name inarg \
     if (handle == -1) \
 	return -1; \
     vfs = vfs_op (handle); \
+    if (!vfs) \
+	return -1; \
     result = vfs->name ? (*vfs->name)callarg : -1; \
     if (result == -1) \
 	errno = vfs->name ? ferrno (vfs) : E_NOTSUPP; \
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin