(main): If the send mode was interrupted by
the user, exit with zero status if mailx is set.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -359,11 +359,13 @@ main (int argc, char **argv) | ... | @@ -359,11 +359,13 @@ main (int argc, char **argv) |
359 | /* FIXME: set cmd to "mail [add1...]" */ | 359 | /* FIXME: set cmd to "mail [add1...]" */ |
360 | char *buf = NULL; | 360 | char *buf = NULL; |
361 | int num = 0; | 361 | int num = 0; |
362 | int rc; | ||
362 | if (args.args != NULL) | 363 | if (args.args != NULL) |
363 | while (args.args[num] != NULL) | 364 | while (args.args[num] != NULL) |
364 | num++; | 365 | num++; |
365 | argcv_string (num, args.args, &buf); | 366 | argcv_string (num, args.args, &buf); |
366 | return util_do_command ("mail %s", buf); | 367 | rc = util_do_command ("mail %s", buf); |
368 | return util_getenv (NULL, "mailx", Mail_env_boolean, 0) ? rc : 0; | ||
367 | } | 369 | } |
368 | /* Or acting as a normal reader */ | 370 | /* Or acting as a normal reader */ |
369 | else | 371 | else | ... | ... |
-
Please register or sign in to post a comment