diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-30 17:46:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-30 17:46:12 +0000 |
commit | 61f3fc7e4dc5bdf543940f8cc7334f5f64d4b9fb (patch) | |
tree | 4eb1ec694aca054687584f90dbc78a9d2e6c849e /cmd-load-buffer.c | |
parent | 8df30358317c2e1aeb324c1e5cef0b4a17440302 (diff) | |
download | rtmux-61f3fc7e4dc5bdf543940f8cc7334f5f64d4b9fb.tar.gz rtmux-61f3fc7e4dc5bdf543940f8cc7334f5f64d4b9fb.tar.bz2 rtmux-61f3fc7e4dc5bdf543940f8cc7334f5f64d4b9fb.zip |
Don't babysit people and let them try to load /dev/zero or (more useful)
/dev/null if they want.
Diffstat (limited to 'cmd-load-buffer.c')
-rw-r--r-- | cmd-load-buffer.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c index 063cafa1..4a7f9ffb 100644 --- a/cmd-load-buffer.c +++ b/cmd-load-buffer.c @@ -60,10 +60,6 @@ cmd_load_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->error(ctx, "%s: %s", data->arg, strerror(errno)); return (-1); } - if (!S_ISREG(statbuf.st_mode)) { - ctx->error(ctx, "%s: not a regular file", data->arg); - return (-1); - } if ((f = fopen(data->arg, "rb")) == NULL) { ctx->error(ctx, "%s: %s", data->arg, strerror(errno)); |