Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Oct 1997 13:59:32 -0400 (EDT)
From:      "Chad M. Fraleigh" <chadf@bookcase.com>
To:        current@FreeBSD.ORG
Subject:   Missing #ifdef in su.c
Message-ID:  <Pine.BSF.3.95.971012135425.393A-100000@notes>

next in thread | raw e-mail | index | archive | help

	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971012135425.393A-100000>