diff options
Diffstat (limited to 'adb/remount_service.c')
-rw-r--r-- | adb/remount_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/remount_service.c b/adb/remount_service.c index d3a649b..3a4535e 100644 --- a/adb/remount_service.c +++ b/adb/remount_service.c @@ -39,7 +39,7 @@ static char *find_mount(const char *dir) const char delims[] = "\n"; char buf[4096]; - fd = unix_open("/proc/mounts", O_RDONLY); + fd = unix_open("/proc/mounts", O_RDONLY | O_CLOEXEC); if (fd < 0) return NULL; @@ -83,7 +83,7 @@ static int remount_system() if (!dev) return -1; - fd = unix_open(dev, O_RDONLY); + fd = unix_open(dev, O_RDONLY | O_CLOEXEC); if (fd < 0) return -1; |