From owner-freebsd-standards@FreeBSD.ORG Sun Apr 23 21:40:26 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECD5A16A404 for ; Sun, 23 Apr 2006 21:40:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF4F343D62 for ; Sun, 23 Apr 2006 21:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3NLeIaC080542 for ; Sun, 23 Apr 2006 21:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3NLeIau080541; Sun, 23 Apr 2006 21:40:18 GMT (envelope-from gnats) Resent-Date: Sun, 23 Apr 2006 21:40:18 GMT Resent-Message-Id: <200604232140.k3NLeIau080541@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Andreas Kohn" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56B0D16A402 for ; Sun, 23 Apr 2006 21:39:26 +0000 (UTC) (envelope-from andreas@syndrom23.de) Received: from vs159088.vserver.de (syndrom23.de [62.75.159.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9235A43D46 for ; Sun, 23 Apr 2006 21:39:24 +0000 (GMT) (envelope-from andreas@syndrom23.de) Received: from [212.204.44.203] (helo=klamath.syndrom23.de) by vs159088.vserver.de with esmtpa (Exim 4.50) id 1FXmIZ-00005B-Vk for FreeBSD-gnats-submit@freebsd.org; Sun, 23 Apr 2006 23:39:20 +0200 Message-Id: <1145828362.16563@klamath.syndrom23.de> Date: Sun, 23 Apr 2006 23:39:22 +0200 From: "Andreas Kohn" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.7 Cc: Subject: standards/96236: [PATCH] [POSIX] sed.1 incorrectly describes a function-list X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 21:40:29 -0000 >Number: 96236 >Category: standards >Synopsis: [PATCH] [POSIX] sed.1 incorrectly describes a function-list >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 23 21:40:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andreas Kohn >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 7.0-CURRENT #41: Fri Mar 17 12:01:02 CET 2006 root@klamath.syndrom23.de:/usr/obj/usr/src/sys/KLAMATH >Description: sed.1 says about a function-list: This is a list of sed functions separated by newlines, as follows: The ``{'' can be preceded by white space and can be followed by white space. The function can be preceded by white space. The terminating ``}'' must be preceded by a newline or optional white space. According to SUS, this is incorrect: The shall be preceded by a and can be preceded or followed by s. The sed command does follow SUS, see attached test case. GNU sed (4.1.4 tested) also allows that the } is only preceeded by whitespace, see attached test case. A simple fix would be to replace the "or" with an "and", as in the patch. >How-To-Repeat: Try the test case from sed-check.shar with both SED=sed and SED=gsed. Compare with documentation and SUS. >Fix: --- sed-check.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sed-check # sed-check/Makefile # sed-check/testcase.gsed # sed-check/testcase.txt # echo c - sed-check mkdir -p sed-check > /dev/null 2>&1 echo x - sed-check/Makefile sed 's/^X//' >sed-check/Makefile << 'END-of-sed-check/Makefile' X# Check for [2addr] function-list functionaly of sed X X# try with gsed XSED?=sed X Xtest: X if ! ${SED} -e '/start/,/end/ { s/foobar/barbaz/ }' testcase.txt > testcase.out; then \ X echo FAILED ; \ X else \ X if ! cmp -s testcase.gsed testcase.out; then \ X echo FAILED ; \ X else \ X echo PASSED ; \ X fi \ X fi X X END-of-sed-check/Makefile echo x - sed-check/testcase.gsed sed 's/^X//' >sed-check/testcase.gsed << 'END-of-sed-check/testcase.gsed' Xsome text which should not be touched Xalthough it does contain the search strings "foobar" X Xstart Xhere is some text that also contains barbaz, which should be changed. Xsome more text. Xend X Xthe next foobar should stay foobar. X END-of-sed-check/testcase.gsed echo x - sed-check/testcase.txt sed 's/^X//' >sed-check/testcase.txt << 'END-of-sed-check/testcase.txt' Xsome text which should not be touched Xalthough it does contain the search strings "foobar" X Xstart Xhere is some text that also contains foobar, which should be changed. Xsome more text. Xend X Xthe next foobar should stay foobar. X END-of-sed-check/testcase.txt exit --- sed-check.shar ends here --- --- sed.1-function-list.diff begins here --- Index: sed.1 =================================================================== RCS file: /storage/freebsd/cvs/src/usr.bin/sed/sed.1,v retrieving revision 1.43 diff -u -r1.43 sed.1 --- sed.1 14 Jun 2005 11:50:52 -0000 1.43 +++ sed.1 23 Apr 2006 21:29:32 -0000 @@ -280,7 +280,7 @@ The function can be preceded by white space. The terminating .Dq } -must be preceded by a newline or optional white space. +must be preceded by a newline and optional white space. .Pp .Bl -tag -width "XXXXXX" -compact .It [2addr] function-list --- sed.1-function-list.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Sun Apr 23 22:40:19 2006 Return-Path: X-Original-To: freebsd-standards@hub.freebsd.org Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07D2D16A408 for ; Sun, 23 Apr 2006 22:40:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DDA243D48 for ; Sun, 23 Apr 2006 22:40:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3NMeIEf083365 for ; Sun, 23 Apr 2006 22:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3NMeIx7083364; Sun, 23 Apr 2006 22:40:18 GMT (envelope-from gnats) Resent-Date: Sun, 23 Apr 2006 22:40:18 GMT Resent-Message-Id: <200604232240.k3NMeIx7083364@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Nagy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6518816A406 for ; Sun, 23 Apr 2006 22:38:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1A843D49 for ; Sun, 23 Apr 2006 22:38:16 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3NMcFTH095254 for ; Sun, 23 Apr 2006 22:38:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k3NMcFc5095253; Sun, 23 Apr 2006 22:38:15 GMT (envelope-from nobody) Message-Id: <200604232238.k3NMcFc5095253@www.freebsd.org> Date: Sun, 23 Apr 2006 22:38:15 GMT From: Martin Nagy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: standards/96239: [PATCH] /usr/bin/id output not POSIX compliant when invoked with euid != ruid X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 22:40:19 -0000 >Number: 96239 >Category: standards >Synopsis: [PATCH] /usr/bin/id output not POSIX compliant when invoked with euid != ruid >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 23 22:40:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Martin Nagy >Release: FreeBSD 5.4-RELEASE i386 >Organization: none >Environment: All versions >Description: If /usr/bin/id is called with euid != ruid then its output doesn't comply to IEEE Std 1003.2 - euid comes before gid, while it should come after it, example: uid=0(root) euid=1(daemon) gid=0(wheel) egid=6(mail) groups=6(mail), 0(wheel), 5(operator) should really be: uid=0(root) gid=0(wheel) euid=1(daemon) egid=6(mail) groups=6(mail), 0(wheel), 5(operator) >How-To-Repeat: > su # cp /usr/bin/id /tmp # chown daemon:mail /tmp/id # chmod ug+s /tmp/id # /tmp/id >Fix: Apply the patch to CURRENT version: --- id.c.orig Sun Apr 23 12:16:28 2006 +++ id.c Sun Apr 23 13:22:51 2006 @@ -252,14 +252,14 @@ } printf("uid=%u(%s)", uid, pw->pw_name); + printf(" gid=%u", gid); + if ((gr = getgrgid(gid))) + (void)printf("(%s)", gr->gr_name); if (p_euid && (euid = geteuid()) != uid) { (void)printf(" euid=%u", euid); if ((pw = getpwuid(euid))) (void)printf("(%s)", pw->pw_name); } - printf(" gid=%u", gid); - if ((gr = getgrgid(gid))) - (void)printf("(%s)", gr->gr_name); if (p_egid && (egid = getegid()) != gid) { (void)printf(" egid=%u", egid); if ((gr = getgrgid(egid))) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Mon Apr 24 11:03:06 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99A3316A400 for ; Mon, 24 Apr 2006 11:03:06 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3806A43D60 for ; Mon, 24 Apr 2006 11:03:00 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3OB30l9035672 for ; Mon, 24 Apr 2006 11:03:00 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3OB2xtD035666 for freebsd-standards@freebsd.org; Mon, 24 Apr 2006 11:02:59 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Apr 2006 11:02:59 GMT Message-Id: <200604241102.k3OB2xtD035666@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 11:03:06 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string o [2002/12/13] kern/46239 standards posix semaphore implementation errors o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2005/06/25] standards/82654standards C99 long double math functions are missin o [2006/03/20] standards/94729standards fcntl() throws undocumented ENOTTY 5 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/01/24] standards/24590standards timezone function not compatible witn Sin s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public s [2002/03/19] standards/36076standards Implementation of POSIX fuser command s [2002/05/07] standards/37843standards manual for pthread_setschedparam(3) is wr o [2002/06/14] standards/39256standards snprintf/vsnprintf aren't POSIX-conforman p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2003/07/25] standards/54833standards [pcvt] more pcvt deficits o [2003/07/25] standards/54839standards [pcvt] pcvt deficits o [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/05] standards/56476standards cd9660 unicode support simple hack o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname s [2004/02/14] standards/62858standards malloc(0) not C99 compliant s [2004/03/29] kern/64875 standards [libc] [patch] [feature request] add a sy o [2004/05/07] standards/66357standards make POSIX conformance problem ('sh -e' & o [2004/05/11] standards/66531standards _gettemp uses a far smaller set of filena o [2004/08/22] standards/70813standards [PATCH] ls(1) not Posix compliant o [2004/09/22] standards/72006standards floating point formating in non-C locales o [2005/03/20] standards/79055standards Add an IFS regression test for shells o [2005/03/20] standards/79056standards regex(3) regression tests o [2005/03/21] standards/79067standards /bin/sh should be more intelligent about a [2005/04/23] standards/80293standards sysconf() does not support well-defined u o [2005/05/20] standards/81287standards [PATCH]: fingerd(8) might send a line not o [2005/07/21] standards/83845standards [libm] [patch] add log2() and log2f() sup o [2005/08/18] standards/85080standards output of long double subnormals (with pr o [2005/12/24] standards/90871standards ACPI Not Work o [2006/01/26] standards/92360standards [headers] [patch] Missing TAB3 in kernel o [2006/01/26] standards/92362standards [headers] [patch] Missing SIGPOLL in kern o [2006/02/22] kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS ( o [2006/04/18] standards/96016standards clock_getres et al should be in o [2006/04/23] standards/96236standards [PATCH] [POSIX] sed.1 incorrectly describ o [2006/04/23] standards/96239standards [PATCH] /usr/bin/id output not POSIX comp 35 problems total. From owner-freebsd-standards@FreeBSD.ORG Thu Apr 27 13:44:21 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4267216A417 for ; Thu, 27 Apr 2006 13:44:21 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id C252B43D62 for ; Thu, 27 Apr 2006 13:44:18 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA18075 for ; Thu, 27 Apr 2006 16:44:16 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4450CAAF.6060409@icyb.net.ua> Date: Thu, 27 Apr 2006 16:44:15 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5 (X11/20060222) MIME-Version: 1.0 To: freebsd-standards@freebsd.org Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Subject: SIGSYS under __BSD_VISIBLE X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 13:44:21 -0000 Guys, this is very minor nitpick, maybe I missing something but it just caught my attention that SIGSYS is put under __BSD_VISIBLE condition, but it seems to be defined by POSIX in fact: http://www.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html -- Andriy Gapon