+#ifdef HAVE_SUNTSOL
+        passwd_entry = getpwnam ("gdm");
+        XTSOLsetWorkstationOwner (slave->priv->server_display,
&(passwd_entry->pw_uid));
+#endif

Presumably if the gdm user doesn't exist you've errored out before
this and don't need to worry about introducing a segfault here?

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to