From owner-freebsd-current Sun Oct 12 10:59:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA06094 for current-outgoing; Sun, 12 Oct 1997 10:59:38 -0700 (PDT) (envelope-from owner-freebsd-current) Received: from bookcase.com (root@notes.bookcase.com [207.22.115.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA06087 for ; Sun, 12 Oct 1997 10:59:35 -0700 (PDT) (envelope-from chadf@bookcase.com) Received: from localhost (chadf@localhost) by bookcase.com (8.8.5/8.7.3) with SMTP id NAA00445 for ; Sun, 12 Oct 1997 13:59:33 -0400 (EDT) Date: Sun, 12 Oct 1997 13:59:32 -0400 (EDT) From: "Chad M. Fraleigh" X-Sender: chadf@notes To: current@FreeBSD.ORG Subject: Missing #ifdef in su.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk While compiling su to fix a SIGSEG on an older release (yeah I'm too lazy to upgrade the whole thing right now), I noticed it wasn't completely #ifdef LOGIN_CAP clean. Here's the patch: *** su.c.orig Mon Sep 29 06:51:44 1997 --- su.c Sun Oct 12 13:48:19 1997 *************** *** 410,416 **** --- 410,418 ---- syslog(LOG_NOTICE|LOG_AUTH, "%s to %s%s", username, user, ontty()); + #ifdef LOGIN_CAP login_close(lc); + #endif execv(shell, np); err(1, "%s", shell); -Chad