summaryrefslogtreecommitdiffstats
path: root/sdcard
diff options
context:
space:
mode:
authorWilliam Roberts <bill.c.roberts@gmail.com>2015-04-23 18:10:51 -0700
committerWilliam Roberts <bill.c.roberts@gmail.com>2015-04-24 01:13:35 +0000
commit4555b69f266513025aed94c901af09bf13923286 (patch)
treeab94e40d2833441683e3093765721aa8588613f4 /sdcard
parent765207524fcbe261686c5d96bc42ea3dcc124f0a (diff)
downloadsystem_core-4555b69f266513025aed94c901af09bf13923286.zip
system_core-4555b69f266513025aed94c901af09bf13923286.tar.gz
system_core-4555b69f266513025aed94c901af09bf13923286.tar.bz2
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
Diffstat (limited to 'sdcard')
-rw-r--r--sdcard/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 041c37a..893c0dc 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -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){