Use xasprintf
This commit is contained in:
parent
9a3e7724be
commit
cf5bb1eec6
@ -4,6 +4,8 @@ ChangeLog for davfs2
|
||||
2014-04-05 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* umount_davfs.c:
|
||||
Allways try 'umount -i'.
|
||||
* umount_davfs.c:
|
||||
Use xasprintf.
|
||||
|
||||
2014-04-05 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* configure.ac, src/Makefile.am, defaults.h,
|
||||
|
@ -128,9 +128,9 @@ main(int argc, char *argv[])
|
||||
|
||||
char *umount_command = NULL;
|
||||
if (mpoint) {
|
||||
umount_command = ne_concat("umount -i '", mpoint, "'", NULL);
|
||||
umount_command = xasprintf("umount -i '%s'", mpoint);
|
||||
} else {
|
||||
umount_command = ne_concat("umount -i '", argv[optind], "'", NULL);
|
||||
umount_command = xasprintf("umount -i '%s'", argv[optind]);
|
||||
error(0, 0,
|
||||
_("\n"
|
||||
" can't evaluate PID file name;\n"
|
||||
|
Loading…
Reference in New Issue
Block a user