Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4555b69f authored by William Roberts's avatar William Roberts
Browse files

Correct magic number on umount2

The umount2 call was using the magic constant 2 which is
has a defined and proper macro in mount.h as MNT_DETATCH.

Change-Id: I4ca4a6d31cbf5495c545088e3d90a8894a9f912f
parent 76520752
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1875,7 +1875,7 @@ static int run(const char* source_path, const char* dest_path, uid_t uid,
    struct fuse fuse;

    /* cleanup from previous instance, if necessary */
    umount2(dest_path, 2);
    umount2(dest_path, MNT_DETACH);

    fd = open("/dev/fuse", O_RDWR);
    if (fd < 0){