diff options
author | Kay Sievers <kay@vrfy.org> | 2012-07-05 17:33:24 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-07-05 17:33:24 +0200 |
commit | 47ef94ac5f39db6c5c18be10afe32397a0a8d5cc (patch) | |
tree | 2a6872d28ae5d6c7f4b7a73a9765dccace762e03 /src/udev/cdrom_id | |
parent | daa9cf546ce7265645ced9592dd54c6b2fc04302 (diff) |
udev: add some O_CLOEXEC
Diffstat (limited to 'src/udev/cdrom_id')
-rw-r--r-- | src/udev/cdrom_id/cdrom_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c index a199dd7ddc..74c5165e2a 100644 --- a/src/udev/cdrom_id/cdrom_id.c +++ b/src/udev/cdrom_id/cdrom_id.c @@ -125,7 +125,7 @@ static bool is_mounted(const char *device) if (stat(device, &statbuf) < 0) return -ENODEV; - fp = fopen("/proc/self/mountinfo", "r"); + fp = fopen("/proc/self/mountinfo", "re"); if (fp == NULL) return -ENOSYS; while (fscanf(fp, "%*s %*s %i:%i %*[^\n]", &maj, &min) == 2) { |