mirror of https://github.com/MidnightCommander/mc
Revert last patch, it has some issues (you want to update when you already
updated your code with the broken patch).
This commit is contained in:
parent
8a7769edb3
commit
3cf5946891
|
@ -1,9 +1,3 @@
|
||||||
1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
|
|
||||||
|
|
||||||
* sfs.c (vfmake): Quote characters with a special meaning to the
|
|
||||||
shell in filenames/-pathes (Fix Bug #1931, VFS will not work if
|
|
||||||
your full path has the space character in it).
|
|
||||||
|
|
||||||
1999-08-17 Kjartan Maraas <kmaraas@online.no>
|
1999-08-17 Kjartan Maraas <kmaraas@online.no>
|
||||||
|
|
||||||
* fish.c: Fix typo.
|
* fish.c: Fix typo.
|
||||||
|
|
14
vfs/sfs.c
14
vfs/sfs.c
|
@ -65,14 +65,12 @@ static int vfmake (vfs *me, char *name, char *cache)
|
||||||
|
|
||||||
if ((sfs_flags[w] & F_1) || (!strcmp (name, "/"))) ; else return -1;
|
if ((sfs_flags[w] & F_1) || (!strcmp (name, "/"))) ; else return -1;
|
||||||
/* if ((sfs_flags[w] & F_2) || (!inpath) || (!*inpath)); else return -1; */
|
/* if ((sfs_flags[w] & F_2) || (!inpath) || (!*inpath)); else return -1; */
|
||||||
if (!(sfs_flags[w] & F_NOLOCALCOPY)) {
|
if (!(sfs_flags[w] & F_NOLOCALCOPY))
|
||||||
s = mc_getlocalcopy (name);
|
name = mc_getlocalcopy (name);
|
||||||
if (!s)
|
else
|
||||||
return -1;
|
name = g_strdup (name);
|
||||||
name = name_quote (s, 0);
|
if (!name)
|
||||||
g_free (s);
|
return -1;
|
||||||
} else
|
|
||||||
name = name_quote (name, 0);
|
|
||||||
s = sfs_command[w];
|
s = sfs_command[w];
|
||||||
#define COPY_CHAR if (t-pad>10200) return -1; else *t++ = *s;
|
#define COPY_CHAR if (t-pad>10200) return -1; else *t++ = *s;
|
||||||
#define COPY_STRING(a) if ((t-pad)+strlen(a)>10200) return -1; else { strcpy (t, a); t+= strlen(a); }
|
#define COPY_STRING(a) if ((t-pad)+strlen(a)>10200) return -1; else { strcpy (t, a); t+= strlen(a); }
|
||||||
|
|
Loading…
Reference in New Issue