1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/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.).
Этот коммит содержится в:
родитель
cb009aa708
Коммит
8a7769edb3
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* fish.c: Fix typo.
|
||||
|
14
vfs/sfs.c
14
vfs/sfs.c
@ -65,12 +65,14 @@ 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_2) || (!inpath) || (!*inpath)); else return -1; */
|
||||
if (!(sfs_flags[w] & F_NOLOCALCOPY))
|
||||
name = mc_getlocalcopy (name);
|
||||
else
|
||||
name = g_strdup (name);
|
||||
if (!name)
|
||||
return -1;
|
||||
if (!(sfs_flags[w] & F_NOLOCALCOPY)) {
|
||||
s = mc_getlocalcopy (name);
|
||||
if (!s)
|
||||
return -1;
|
||||
name = name_quote (s, 0);
|
||||
g_free (s);
|
||||
} else
|
||||
name = name_quote (name, 0);
|
||||
s = sfs_command[w];
|
||||
#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); }
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user