commit 5df631ac0995012f83ecdb5c6ea1dc72fa924d0b
parent f02f2190f064584ff838352a8ec1cc92dc191742
Author: sin <sin@2f30.org>
Date: Fri, 4 Jul 2014 23:10:14 +0100
Use /dev/fd/0 as opposed to /dev/stdin
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cat.c b/cat.c
@@ -30,7 +30,7 @@ main(int argc, char *argv[])
for(i = 0; i < argc; i++) {
p = argv[i];
if (argv[i][0] == '-')
- p = "/dev/stdin";
+ p = "/dev/fd/0";
if(!(fp = fopen(p, "r"))) {
weprintf("fopen %s:", argv[i]);
continue;