diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-29 17:59:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-29 17:59:50 -0400 |
commit | f2d08cf7558176af7ef36cf5b5213e676b02d7ac (patch) | |
tree | dc3d0d1d9d1a29864c1278828bb0e16b7482d708 /src/misc | |
parent | 3609e019f352912e882b91b7a856c7b30569f2de (diff) | |
download | musl-f2d08cf7558176af7ef36cf5b5213e676b02d7ac.tar.gz musl-f2d08cf7558176af7ef36cf5b5213e676b02d7ac.tar.bz2 musl-f2d08cf7558176af7ef36cf5b5213e676b02d7ac.tar.xz musl-f2d08cf7558176af7ef36cf5b5213e676b02d7ac.zip |
fix some more O_CLOEXEC/SOCK_CLOEXEC issues
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/realpath.c b/src/misc/realpath.c index 57568179..18335146 100644 --- a/src/misc/realpath.c +++ b/src/misc/realpath.c @@ -19,7 +19,7 @@ char *realpath(const char *restrict filename, char *restrict resolved) return 0; } - fd = open(filename, O_RDONLY|O_NONBLOCK); + fd = open(filename, O_RDONLY|O_NONBLOCK|O_CLOEXEC); if (fd < 0) return 0; snprintf(buf, sizeof buf, "/proc/self/fd/%d", fd); |