mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-05 11:25:17 +00:00
Formerly misc.c.~27~
This commit is contained in:
parent
b018243a45
commit
e813da324d
1 changed files with 7 additions and 3 deletions
10
misc.c
10
misc.c
|
@ -509,9 +509,13 @@ log_access (flavor)
|
||||||
if (! debug_flag)
|
if (! debug_flag)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
printf ("%s access: user %d (real %d), group %d (real %d)\n",
|
/* All the other debugging messages go to stdout,
|
||||||
flavor, geteuid (), getuid (), getegid (), getgid ());
|
but we write this one to stderr because it might be
|
||||||
fflush (stdout);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue