aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/file_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 16:53:24 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 16:53:24 +0100
commite0e6813a1da123d5b0cc920c5e0f20b0028c830b (patch)
treec6c70cbf701472a2f27d6e5d5274f569721d1028 /src/input/file_input_plugin.c
parent3d2a9d35450876fe28708340e2b4ed3831d9d9af (diff)
downloadmpd-e0e6813a1da123d5b0cc920c5e0f20b0028c830b.tar.gz
mpd-e0e6813a1da123d5b0cc920c5e0f20b0028c830b.tar.xz
mpd-e0e6813a1da123d5b0cc920c5e0f20b0028c830b.zip
fd_util: removed creat_cloexec()
Add a "mode" argument to open_cloexec() instead.
Diffstat (limited to '')
-rw-r--r--src/input/file_input_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/file_input_plugin.c b/src/input/file_input_plugin.c
index 55b495f38..8561d04e7 100644
--- a/src/input/file_input_plugin.c
+++ b/src/input/file_input_plugin.c
@@ -51,7 +51,7 @@ input_file_open(struct input_stream *is, const char *filename)
*slash = '\0';
}
- fd = open_cloexec(pathname, O_RDONLY);
+ fd = open_cloexec(pathname, O_RDONLY, 0);
if (fd < 0) {
is->error = errno;
g_debug("Failed to open \"%s\": %s",