ping: use |=, not =, when combine option bit mask
[oweals/busybox.git] / mailutils / sendmail.c
index 2f99df6c06fb04ee95c695d11fe85fa64bbe6c54..4b58a78eb062478bc9cc4c822b08bc3e64f9d3a7 100644 (file)
@@ -93,7 +93,7 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
 
        // save initial stdin since body is piped!
        xdup2(STDIN_FILENO, 3);
-       G.fp0 = fdopen(3, "r");
+       G.fp0 = xfdopen_for_read(3);
 
        // parse options
        // -f is required. -H and -S are mutually exclusive