13 lines
514 B
Text
13 lines
514 B
Text
$NetBSD: patch-ab,v 1.2 2006/03/22 23:15:30 joerg Exp $
|
|
|
|
--- lconnect.c.orig 1999-11-22 16:07:32.000000000 -0800
|
|
+++ lconnect.c
|
|
@@ -92,7 +92,7 @@ init_local_host()
|
|
hinfo[LOCAL].hostname = local_host_name();
|
|
|
|
/* Get user name */
|
|
-#if defined(__sony_news) || defined(__MACHTEN__)
|
|
+#if defined(__sony_news) || defined(__MACHTEN__) || defined(__NetBSD__) || defined(__DragonFly__)
|
|
if((username = getenv("USER")) || (username = getlogin()))
|
|
#else
|
|
if((username = getenv("USER")) || (username = cuserid(NULL)))
|