Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37905613
en ru br
ALT Linux repos
S:4.8.30-alt3
5.0: 4.6.2-alt11.pre1
4.1: 4.6.2-alt7.pre1
4.0: 4.6.1r-alt9
3.0: 4.6.1r-alt3

Group :: File tools
RPM: mc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mc-4.6.1-alt-vfs.patch
Download


--- mc-20050518/vfs/vfs.c.orig	2005-05-18 16:50:52 +0400
+++ mc-20050518/vfs/vfs.c	2005-05-18 17:02:57 +0400
@@ -357,6 +357,8 @@
     int result; \
     char *mpath = vfs_canon (path); \
     vfs = vfs_get_class (mpath); \
+    if (!vfs) \
+	return -1; \
     result = vfs->name ? (*vfs->name)callarg : -1; \
     g_free (mpath); \
     if (result == -1) \
@@ -383,6 +385,8 @@
     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; \
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin