diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:34 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:34 +0100 |
commit | fd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch) | |
tree | 997c0ca2abc018369babd7da59bcd0afe492068e /login-utils/mesg.c | |
parent | 726f69e29ca9d4842f3acb20fffd2466fda62c09 (diff) | |
download | util-linux-old-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.gz |
Imported from util-linux-2.7.1 tarball.
Diffstat (limited to 'login-utils/mesg.c')
-rw-r--r-- | login-utils/mesg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/login-utils/mesg.c b/login-utils/mesg.c index 79d3ef21..4e491635 100644 --- a/login-utils/mesg.c +++ b/login-utils/mesg.c @@ -36,6 +36,8 @@ * SUCH DAMAGE. * * Modified Fri Mar 10 20:27:19 1995, faith@cs.unc.edu, for Linux + * Modified Mon Jul 1 18:14:10 1996, janl@ifi.uio.no, writing to stdout + * as suggested by Michael Meskes <meskes@Informatik.RWTH-Aachen.DE> * */ @@ -84,10 +86,10 @@ main(argc, argv) if (*argv == NULL) { if (sb.st_mode & (S_IWGRP | S_IWOTH)) { - (void)fprintf(stderr, "is y\n"); + (void)fprintf(stdout, "is y\n"); exit(0); } - (void)fprintf(stderr, "is n\n"); + (void)fprintf(stdout, "is n\n"); exit(1); } |