# HG changeset patch # User Richard M. Stallman # Date 850680853 0 # Node ID 6802dbd07a80af7b449c70b6333d1052af5ec4e7 # Parent fe4b95eb15aea53a0a445dd98f1e680f07ac25d9 (Fuser_full_name): Return nil if the specified user doesn't exist. (init_editfns): Set Vuser_full_name to "unknown" if the user name can't be resolved. diff -r fe4b95eb15ae -r 6802dbd07a80 src/editfns.c --- a/src/editfns.c Sun Dec 15 18:48:23 1996 +0000 +++ b/src/editfns.c Sun Dec 15 20:14:13 1996 +0000 @@ -109,6 +109,8 @@ p = (unsigned char *) getenv ("NAME"); if (p) Vuser_full_name = build_string (p); + else if (NILP (Vuser_full_name)) + Vuser_full_name = build_string ("unknown"); } DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, @@ -585,7 +587,7 @@ error ("Invalid UID specification"); if (!pw) - return build_string ("unknown"); + return Qnil; p = (unsigned char *) USER_FULL_NAME; /* Chop off everything after the first comma. */