Quote mpoint in umount_command

This commit is contained in:
wbaumann 2011-06-25 16:03:03 +00:00
parent f9986f9640
commit cf9f09619b
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
ChangeLog for davfs2 ChangeLog for davfs2
-------------------- --------------------


2011-06-25 Werner Baumann (werner.baumann@onlinehome.de)
* umount_davfs.c:
Quote mpoint in umount_command.

2011-06-25 Werner Baumann (werner.baumann@onlinehome.de) 2011-06-25 Werner Baumann (werner.baumann@onlinehome.de)
* mount_davfs.c: * mount_davfs.c:
Always canonicalize mount point. Always canonicalize mount point.

View File

@ -141,7 +141,7 @@ main(int argc, char *argv[])
char *pidfile = ne_concat(DAV_SYS_RUN, "/", mp, ".pid", NULL); char *pidfile = ne_concat(DAV_SYS_RUN, "/", mp, ".pid", NULL);
free(mp); free(mp);


char *umount_command = ne_concat("umount -i ", mpoint, NULL); char *umount_command = ne_concat("umount -i '", mpoint, "'", NULL);


char *pid = NULL; char *pid = NULL;
FILE *file = fopen(pidfile, "r"); FILE *file = fopen(pidfile, "r");