[PATCH] gnome-core-1.1.5/gnome-hint



Hello,

Attached is a patch that keeps gnome-hint from displaying /etc/motd if
the file is empty.

Aron

-- 
Aron Griffis            Compaq Computer Corporation, ZKO3-3/T30
Tru64 Hardware Support  110 Spit Brook Rd, Nashua, NH  03062
603/884-1276            http://bigfoot.com/~agriffis/
--- gnome-core-1.1.5.old/gnome-hint/gnome-hint.c	Thu Mar  2 16:42:04 2000
+++ gnome-core-1.1.5/gnome-hint/gnome-hint.c	Thu Mar  2 16:43:48 2000
@@ -522,6 +522,8 @@
 	
 	if(is_motd) {
 		hint = get_motd();
+		if (!hint || *hint == '\0')
+			gtk_exit(0);
 	} else if(is_fortune) {
 		curfortune = hint = get_a_fortune();
 	} else {


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