From owner-freebsd-ports Thu Jul 23 07:10:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA21753 for freebsd-ports-outgoing; Thu, 23 Jul 1998 07:10:30 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA21742 for ; Thu, 23 Jul 1998 07:10:28 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA24918; Thu, 23 Jul 1998 07:10:01 -0700 (PDT) Received: from gw-nl1.philips.com (gw-nl1.philips.com [192.68.44.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA20948 for ; Thu, 23 Jul 1998 07:05:24 -0700 (PDT) (envelope-from Jos.Backus@nl.origin-it.com) Received: from smtprelay-nl1.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl1.philips.com with ESMTP id QAA07146 for ; Thu, 23 Jul 1998 16:04:58 +0200 (MEST) (envelope-from Jos.Backus@nl.origin-it.com) Received: from hal.mpn.cp.philips.com (hal.mpn.cp.philips.com [130.139.64.195]) by smtprelay-nl1.philips.com (8.8.5/8.6.10-1.2.2m-970826) with SMTP id QAA14739 for ; Thu, 23 Jul 1998 16:04:57 +0200 (MET DST) Received: (qmail 27401 invoked by uid 666); 23 Jul 1998 14:02:50 -0000 Message-Id: <19980723140250.27400.qmail@hal.mpn.cp.philips.com> Date: 23 Jul 1998 14:02:50 -0000 From: Jos.Backus@nl.origin-it.com Reply-To: Jos.Backus@nl.origin-it.com To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: Will Deich X-Send-Pr-Version: 3.2 Subject: ports/7379: Bug in super-3.9.7 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7379 >Category: ports >Synopsis: super's command link feature doesn't work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 23 07:10:00 PDT 1998 >Last-Modified: >Originator: Jos Backus >Organization: Origin B.V., The Netherlands >Release: FreeBSD 3.0-CURRENT i386 >Environment: ports/security/super, version 3.9.7, -stable or -current >Description: super doesn't initialize a number of auto variables. This leads to breakage when one tries to use the command link feature. From the manual page: If command is a link to the super program, then typing % command args is equivalent to typing % super command args >How-To-Repeat: bilbo:~/bin% ls -l /usr/local/bin/super -rwxr-xr-x 1 root wheel 80410 Jul 23 15:57 /usr/local/bin/super bilbo:~/bin% which mount /home/jos/bin/mount bilbo:~/bin% ls -l mount lrwxrwxrwx 1 jos jos 20 Jul 23 15:12 mount@ -> /usr/local/bin/super bilbo:~/bin% super mount /dev/da0s1a on / (local) /dev/da0s1g on /burn (local) /dev/da0s1h on /home (local) /dev/da1s1f on /logs (local) /dev/da1s1e on /tmp (local) /dev/da0s1f on /usr (local) /dev/da0s1e on /var (local) procfs on /proc (local) # This doesn't work! bilbo:~/bin% mount mount version 3.9 patchlevel 7 Use: mount [-d | -D] command [args] or: mount [-h|-H|-f|-V] -h=help; -H=long help; -f=just-facts-help; -V=version; -d,-D=debug or: mount -c -c=check syntax in super file; don't execute anything. Super.tab file: `/usr/local/lib/super.tab' super:: printhelp(): Unknown verbosity level 122880 bilbo:~/bin% >Fix: Initialize the variables: --- super.c.orig Thu Jul 23 15:40:37 1998 +++ super.c Thu Jul 23 15:41:16 1998 @@ -534,7 +534,7 @@ char *s, *cmd, *path; char **arglist, **envp; extern char *error_prog; - int iarg, givehelp, giveversion, verbosity; + int iarg=0, givehelp=0, giveversion=0, verbosity=0; s = strrchr(argv[0], '/'); prog = (s && *(s+1)) ? s+1 : argv[0]; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message