Only log error if still is mounted
This commit is contained in:
parent
53ee4afb75
commit
eb23829117
@ -1,6 +1,10 @@
|
|||||||
ChangeLog for davfs2
|
ChangeLog for davfs2
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
2014-06-19 Werner Baumann (werner.baumann@onlinehome.de)
|
||||||
|
* Mount_davfs.c, main:
|
||||||
|
Only log error if still is mounted.
|
||||||
|
|
||||||
2014-06-09 Werner Baumann (werner.baumann@onlinehome.de)
|
2014-06-09 Werner Baumann (werner.baumann@onlinehome.de)
|
||||||
* defaults.h, mount_davfs.h, mount_davfs.c webdav.c:
|
* defaults.h, mount_davfs.h, mount_davfs.c webdav.c:
|
||||||
Add option min_propset.
|
Add option min_propset.
|
||||||
|
@ -363,7 +363,7 @@ main(int argc, char *argv[])
|
|||||||
if (dav_is_mounted()) {
|
if (dav_is_mounted()) {
|
||||||
char *prog = xasprintf("/bin/umount -il %s", mpoint);
|
char *prog = xasprintf("/bin/umount -il %s", mpoint);
|
||||||
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting %s"), mpoint);
|
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting %s"), mpoint);
|
||||||
if (system(prog) != 0)
|
if (system(prog) != 0 && dav_is_mounted())
|
||||||
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting failed"));
|
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), _("unmounting failed"));
|
||||||
}
|
}
|
||||||
if (debug)
|
if (debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user