summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index ec801cd82f..1c5223073b 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -351,8 +351,15 @@ static int open_f(stream_t *stream)
const stream_info_t stream_info_file = {
.name = "file",
.open = open_f,
- .protocols = (const char*const[]){ "file", "", "fd", "fdclose",
- "appending", NULL },
+ .protocols = (const char*const[]){ "file", "", "appending", NULL },
.can_write = true,
.stream_origin = STREAM_ORIGIN_FS,
};
+
+const stream_info_t stream_info_fd = {
+ .name = "fd",
+ .open = open_f,
+ .protocols = (const char*const[]){ "fd", "fdclose", NULL },
+ .can_write = true,
+ .stream_origin = STREAM_ORIGIN_UNSAFE,
+};