Use xasprintf

This commit is contained in:
wbaumann 2014-04-05 20:35:20 +00:00
parent 9a3e7724be
commit cf5bb1eec6
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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"