X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fumount.c;h=57d25e8945af19da0881945345ad5c65a8318a8f;hp=24c0947f2172c624f76940ab7faf5b7af2897430;hb=46108b3bfd8c4bdf11ec55fa36758057c23c131d;hpb=643a14a5271ed19ec30a9882d4b9e9ae1c357fb1 diff --git a/src/umount.c b/src/umount.c index 24c0947f2..57d25e894 100644 --- a/src/umount.c +++ b/src/umount.c @@ -114,7 +114,12 @@ static int mount_points_list_get(MountPoint **head) { goto finish; } - if (mount_point_is_api(p) || mount_point_ignore(p)) { + /* Ignore mount points we can't unmount because they + * are API or because we are keeping them open (like + * /dev/console) */ + if (mount_point_is_api(p) || + mount_point_ignore(p) || + path_streq(p, "/dev/console")) { free(p); continue; }