aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-05-08 18:25:22 -0500
committerRob Landley <rob@landley.net>2017-05-08 18:25:22 -0500
commitc4ca233e4011deff5a5f8e9db05f1a2a819801a5 (patch)
tree5b943a6f4459233baae8c05ffdfc2ff818495a5d
parent31b18720cc8aea4e531bcff4fc5a719b42a5d24b (diff)
downloadtoybox-c4ca233e4011deff5a5f8e9db05f1a2a819801a5.tar.gz
Now that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verify
-rw-r--r--toys/posix/sed.c2
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;
}