Commit 326fd6b0 authored by Niels Möller's avatar Niels Möller

(USER_NAME_FROM_ENV): Check $USER first.

Rev: src/environ.h.in:1.4
parent 552f15df
......@@ -44,7 +44,7 @@
$LOGNAME (Sys V convention) and $USER (BSD convention). */
#define USER_NAME_FROM_ENV(s) do { \
(s) = getenv(ENV_LOGNAME); \
(s) = getenv(ENV_USER); \
if (!(s)) \
(s) = getenv(ENV_USER); \
(s) = getenv(ENV_LOGNAME); \
} while (0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment