X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fumount.c;h=0081d979d9d0128fd99ffa179dcebffc943d6484;hb=472ff3d64a870dcd767ecf61e07d89d8fb2f272d;hp=c7f62081d204bc11d4f450d60cc89671dec70a82;hpb=12aad1d075a6cfa23920b977146e79d8154f2540;p=elogind.git diff --git a/src/umount.c b/src/umount.c index c7f62081d..0081d979d 100644 --- a/src/umount.c +++ b/src/umount.c @@ -223,7 +223,6 @@ static int loopback_list_get(MountPoint **head) { } first = udev_enumerate_get_list_entry(e); - udev_list_entry_foreach(item, first) { MountPoint *lb; struct udev_device *d; @@ -401,12 +400,13 @@ static int mount_points_list_umount(MountPoint **head, bool *changed) { assert(head); LIST_FOREACH_SAFE(mount_point, m, n, *head) { - if (streq(m->path, "/")) + if (streq(m->path, "/")) { + n_failed++; continue; + } /* Trying to umount. Forcing to umount if busy (only for NFS mounts) */ if (umount2(m->path, MNT_FORCE) == 0) { - if (changed) *changed = true;