From 9d825568dd87ba77d0be02c4aa248304efbd0252 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 22 May 1998 14:34:28 +0200
Subject: [PATCH] BeOS doesn't have the pw_gecos field in the passwd struct.

Rev: src/modules/system/passwords.c:1.14
---
 src/modules/system/passwords.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/modules/system/passwords.c b/src/modules/system/passwords.c
index 02bac5b2ed..cb8393b5dc 100644
--- a/src/modules/system/passwords.c
+++ b/src/modules/system/passwords.c
@@ -1,5 +1,5 @@
 /*
- * $Id: passwords.c,v 1.13 1998/04/20 12:33:21 grubba Exp $
+ * $Id: passwords.c,v 1.14 1998/05/22 12:34:28 grubba Exp $
  *
  * Password handling for Pike.
  *
@@ -22,7 +22,7 @@
 
 #include "global.h"
 
-RCSID("$Id: passwords.c,v 1.13 1998/04/20 12:33:21 grubba Exp $");
+RCSID("$Id: passwords.c,v 1.14 1998/05/22 12:34:28 grubba Exp $");
 
 #include "module_support.h"
 #include "interpret.h"
@@ -132,7 +132,11 @@ void push_pwent(struct passwd *ent)
     push_text(ent->pw_passwd);
   push_int(ent->pw_uid);
   push_int(ent->pw_gid);
+#ifdef HAVE_PW_GECOS
   push_text(ent->pw_gecos);
+#else /* !HAVE_PW_GECOS */
+  push_text("Mister Anonymous");
+#endif /* HAVE_PW_GECOS */
   push_text(ent->pw_dir);
   push_text(ent->pw_shell);
   f_aggregate(7);
-- 
GitLab