diff options
author | 2009-07-30 17:46:12 +0000 | |
---|---|---|
committer | 2009-07-30 17:46:12 +0000 | |
commit | 8a0ccaa27ef88657cfabc0103b87ab8472478d3b (patch) | |
tree | 782cb52a6dbdeeddfead442218ad965c1eb166d0 /usr.bin/tmux/cmd-load-buffer.c | |
parent | Remove some dead code found by clang. (diff) | |
download | wireguard-openbsd-8a0ccaa27ef88657cfabc0103b87ab8472478d3b.tar.xz wireguard-openbsd-8a0ccaa27ef88657cfabc0103b87ab8472478d3b.zip |
Don't babysit people and let them try to load /dev/zero or (more useful)
/dev/null if they want.
Diffstat (limited to 'usr.bin/tmux/cmd-load-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-load-buffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 43bc7221b9a..f17483971b9 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.4 2009/07/26 12:58:44 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.5 2009/07/30 17:46:12 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -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)); |