diff options
author | Rob Landley <rob@landley.net> | 2017-05-08 18:25:22 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-05-08 18:25:22 -0500 |
commit | c4ca233e4011deff5a5f8e9db05f1a2a819801a5 (patch) | |
tree | 5b943a6f4459233baae8c05ffdfc2ff818495a5d /toys/posix | |
parent | 31b18720cc8aea4e531bcff4fc5a719b42a5d24b (diff) | |
download | toybox-c4ca233e4011deff5a5f8e9db05f1a2a819801a5.tar.gz |
Now that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verify
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/sed.c b/toys/posix/sed.c index 9169e077..2fcd7624 100644 --- a/toys/posix/sed.c +++ b/toys/posix/sed.c @@ -630,7 +630,7 @@ static void do_sed(int fd, char *name) if (i) { struct sedcmd *command; - if (!fd && !strcmp(name, "-")) { + if (!fd) { error_msg("-i on stdin"); return; } |