[gphat cafes net: Bug #60014, try #2]



This mail was sent to gnome-devel and in case it gets lost in all the
traffic over there, I'll forward it to here. It's a patch against
libgnome.

Cheers,
Malcolm

----- Forwarded message from Cory Watson <gphat cafes net> -----
Delivered-To: gnome-devel-list gnome org
Subject: Bug #60014, try #2
From: Cory Watson <gphat cafes net>
To: gnome-devel-list gnome org
Date: 27 Sep 2001 20:52:16 -0400


I sent this about 10 days ago, and never heard a peep.  Just updated
from CVS and it's still broke.

This is a 2 liner that checks the length of the SHELL var before we try
and pass it back from gnome_util_user_shell().

If someone could slap this in there, I'd be much obliged!


--- gnome-util.c	Sat Sep 15 11:23:33 2001
+++ /root/gnome-util.c	Sat Sep 15 11:49:06 2001
@@ -380,7 +380,8 @@
 		"/bin/csh", "/bin/sh", 0
 	};
 
-	if ((shell = getenv ("SHELL"))){
+	shell = getenv ("SHELL");
+	if ((shell) && (strlen(shell) > 0)) {
 		return g_strdup (shell);
 	}
 	pw = getpwuid(getuid());


----- End forwarded message -----

-- 
Everything is _not_ based on faith... take my word for it.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]