diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/wfopen_input.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/wfopen_input.c b/libbb/wfopen_input.c index 7263c933a..422a58ecf 100644 --- a/libbb/wfopen_input.c +++ b/libbb/wfopen_input.c | |||
@@ -46,3 +46,11 @@ int FAST_FUNC open_or_warn_stdin(const char *filename) | |||
46 | 46 | ||
47 | return fd; | 47 | return fd; |
48 | } | 48 | } |
49 | |||
50 | int FAST_FUNC xopen_stdin(const char *filename) | ||
51 | { | ||
52 | int fd = open_or_warn_stdin(filename); | ||
53 | if (fd >= 0) | ||
54 | return fd; | ||
55 | xfunc_die(); /* We already output an error message. */ | ||
56 | } | ||