diff options
author | Roland McGrath <roland@redhat.com> | 1993-08-01 20:03:45 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-08-01 20:03:45 +0000 |
commit | e813da324dee0f2fb3944530a893970e743d60c4 (patch) | |
tree | 552439925bcf1d677703c1dc118c93fd90ae36d5 /misc.c | |
parent | b018243a45840c892420ead7cb01256cdd1b8ea2 (diff) | |
download | make-e813da324dee0f2fb3944530a893970e743d60c4.tar.gz |
Formerly misc.c.~27~
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -509,9 +509,13 @@ log_access (flavor) if (! debug_flag) return; - printf ("%s access: user %d (real %d), group %d (real %d)\n", - flavor, geteuid (), getuid (), getegid (), getgid ()); - fflush (stdout); + /* All the other debugging messages go to stdout, + but we write this one to stderr because it might be + run in a child fork whose stdout is piped. */ + + fprintf (stderr, "%s access: user %d (real %d), group %d (real %d)\n", + flavor, geteuid (), getuid (), getegid (), getgid ()); + fflush (stderr); } |