Commit d823c26b authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(USER_FULL_NAME): Define to pw->pw_gecos if undefined.

(Fuser_full_name): Use USER_FULL_NAME instead of a literal pw->pw_gecos.
parent 7b4ded6d
......@@ -67,6 +67,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NULL 0
#endif
#ifndef USER_FULL_NAME
#define USER_FULL_NAME pw->pw_gecos
#endif
#ifndef USE_CRT_DLL
extern char **environ;
#endif
......@@ -1370,7 +1374,7 @@ name, or nil if there is no such user. */)
if (!pw)
return Qnil;
p = (unsigned char *) pw->pw_gecos;
p = (unsigned char *) USER_FULL_NAME;
/* Chop off everything after the first comma. */
q = (unsigned char *) index (p, ',');
full = make_string (p, q ? q - p : strlen (p));
......
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