From owner-freebsd-ports Tue Jan 29 15:30:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BCDAC37B404 for ; Tue, 29 Jan 2002 15:30:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0TNU0g12773; Tue, 29 Jan 2002 15:30:00 -0800 (PST) (envelope-from gnats) Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 6288137B41F for ; Tue, 29 Jan 2002 15:20:27 -0800 (PST) Received: (from marcus@localhost) by shumai.marcuscom.com (8.11.6/8.11.6) id g0TNKgj44015; Tue, 29 Jan 2002 18:20:42 -0500 (EST) (envelope-from marcus) Message-Id: <200201292320.g0TNKgj44015@shumai.marcuscom.com> Date: Tue, 29 Jan 2002 18:20:42 -0500 (EST) From: Joe Marcus Clarke Reply-To: Joe Marcus Clarke To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34429: [PATCH] Re-enable the Face browser in gdm Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34429 >Category: ports >Synopsis: [PATCH] Re-enable the Face browser in gdm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jan 29 15:30:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Joe Marcus Clarke >Release: FreeBSD 4.5-RC i386 >Organization: MarcusCom, Inc. >Environment: System: FreeBSD shumai.marcuscom.com 4.5-RC FreeBSD 4.5-RC #0: Fri Jan 25 02:45:22 EST 2002 marcus@shumai.marcuscom.com:/usr/obj/usr/src/sys/SHUMAI i386 >Description: For a long time now, the face browser feature in GDM hasn't worked. That is, the icons never showed up when you enabled the face browser. This patch re-enables that feature. This probably should get a PORTREVISION++. >How-To-Repeat: Enable the face browser in gdm.conf, then restart GDM. You will notice the login box changes, but the icons never appear. >Fix: --- gui/gdmlogin.c.orig Mon Dec 31 21:51:17 2001 +++ gui/gdmlogin.c Tue Jan 29 18:12:12 2002 @@ -3326,7 +3326,9 @@ static gboolean gdm_login_check_exclude (struct passwd *pwent) { +#ifdef HAVE_SHADOW const char * const lockout_passes[] = { "*", "!!", NULL }; +#endif gint i; if ( ! GdmAllowRoot && pwent->pw_uid == 0) @@ -3335,11 +3337,13 @@ if ( ! GdmAllowRemoteRoot && ! login_is_local && pwent->pw_uid == 0) return TRUE; +#ifdef HAVE_SHADOW for (i=0 ; lockout_passes[i] != NULL ; i++) { if (strcmp (lockout_passes[i], pwent->pw_passwd) == 0) { return TRUE; } } +#endif if (GdmExclude != NULL && GdmExclude[0] != '\0') { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message