Bug #60014, try #2



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());


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