From owner-freebsd-bugs Tue Feb 17 23:00:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA04354 for freebsd-bugs-outgoing; Tue, 17 Feb 1998 23:00:11 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA04342; Tue, 17 Feb 1998 23:00:08 -0800 (PST) (envelope-from gnats) Received: from ns1.tu-graz.ac.at (ns1.tu-graz.ac.at [129.27.2.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA03134 for ; Tue, 17 Feb 1998 22:53:17 -0800 (PST) (envelope-from dada@localhost.tu-graz.ac.at) Received: from fcggsg07.icg.tu-graz.ac.at by ns1.tu-graz.ac.at with SMTP id AA14548 (5.67c/IDA-1.5t for ); Wed, 18 Feb 1998 07:52:54 +0100 Received: from localhost.tu-graz.ac.at (isdn105.tu-graz.ac.at [129.27.240.105]) by fcggsg07.icg.tu-graz.ac.at (8.8.8/8.8.8) with ESMTP id HAA03203 for ; Wed, 18 Feb 1998 07:52:50 +0100 (MET) Received: (from dada@localhost) by localhost.tu-graz.ac.at (8.8.8/8.8.5) id HAA09054; Wed, 18 Feb 1998 07:37:46 +0100 (CET) Message-Id: <199802180637.HAA09054@localhost.tu-graz.ac.at> Date: Wed, 18 Feb 1998 07:37:46 +0100 (CET) From: Martin Kammerhofer Reply-To: dada@sbox.tu-graz.ac.at To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5778: missing newline in output of id -p Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5778 >Category: bin >Synopsis: missing newline in output of id -p >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 17 23:00:04 PST 1998 >Last-Modified: >Originator: Martin Kammerhofer >Organization: Graz University of Technology >Release: FreeBSD 2.2.5-STABLE i386 >Environment: nothing special >Description: if id -p is called with euid != ruid then output is missing a '\n'. This is ugly and confusing. >How-To-Repeat: su Fix: fixing id(1) should take less time than it took me typing this PR :) Index: id.c =================================================================== RCS file: /home/dada/cvsroot/src/id.c,v retrieving revision 1.1.1.1 diff -u -K -r1.1.1.1 id.c --- id.c 1998/02/18 06:17:44 1.1.1.1 +++ id.c 1998/02/18 06:21:03 @@ -174,9 +174,9 @@ if ((eid = geteuid()) != rid) if ((pw = getpwuid(eid))) - (void)printf("euid\t%s", pw->pw_name); + (void)printf("euid\t%s\n", pw->pw_name); else - (void)printf("euid\t%u", eid); + (void)printf("euid\t%u\n", eid); if ((rid = getgid()) != (eid = getegid())) if ((gr = getgrgid(rid))) (void)printf("rgid\t%s\n", gr->gr_name); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message