From owner-freebsd-standards@FreeBSD.ORG Mon Nov 8 11:02:05 2004 Return-Path: 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 A5D9316A4F2 for ; Mon, 8 Nov 2004 11:02:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8819A43D4C for ; Mon, 8 Nov 2004 11:02:05 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id iA8B25s6010340 for ; Mon, 8 Nov 2004 11:02:05 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iA8B24wK010334 for freebsd-standards@freebsd.org; Mon, 8 Nov 2004 11:02:04 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 8 Nov 2004 11:02:04 GMT Message-Id: <200411081102.iA8B24wK010334@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 Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 11:02:05 -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 p [2002/02/25] standards/35307standards standard include files are not standard c o [2002/12/13] kern/46239 standards posix semaphore implementation errors o [2003/04/21] standards/51209standards [PATCH] add a64l()/l64a/l64a_r functions p [2003/06/05] standards/52972standards /bin/sh arithmetic not POSIX compliant o [2003/06/18] kern/53447 standards poll(2) semantics differ from susV3/POSIX o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2003/09/15] standards/56906standards Several math(3) functions fail to set err o [2004/01/01] standards/60772standards _Bool and bool should be unsigned 9 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1995/01/11] kern/105 standards Distributed libm (msun) has non-standard 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 p [2001/11/20] standards/32126standards getopt(3) not Unix-98 conformant o [2002/02/27] misc/35381 standards incorrect floating-point display of large s [2002/03/19] standards/36076standards Implementation of POSIX fuser command o [2002/06/14] standards/39256standards [v]snprintf aren't POSIX-conformant for s o [2002/07/09] kern/40378 standards stdlib.h gives needless warnings with -an 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 [2002/12/23] standards/46504standards Warnings in headers o [2003/06/22] standards/53613standards FreeBSD doesn't define EPROTO o [2003/07/24] standards/54809standards pcvt deficits o [2003/07/25] standards/54833standards more pcvt deficits o [2003/07/25] standards/54839standards 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 p [2003/12/26] standards/60597standards FreeBSD's /usr/include lacks of cpio.h s [2004/02/14] standards/62858standards malloc(0) not C99 compliant p [2004/02/21] standards/63173standards Patch to add getopt_long_only(3) to libc o [2004/03/29] kern/64875 standards [patch] add a system call: fdatasync() 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 not Posix compliant o [2004/08/26] docs/70985 standards [patch] sh(1): incomplete documentation o o [2004/09/22] standards/72006standards floating point formating in non-C locales 30 problems total. From owner-freebsd-standards@FreeBSD.ORG Fri Nov 12 18:58:49 2004 Return-Path: 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 6B2C816A4CE for ; Fri, 12 Nov 2004 18:58:49 +0000 (GMT) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E6FC43D39 for ; Fri, 12 Nov 2004 18:58:49 +0000 (GMT) (envelope-from jkh@brierdr.com) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id iACJ51kC009279 for ; Fri, 12 Nov 2004 11:05:01 -0800 (PST) Received: from relay3.apple.com (relay3.apple.com) by mailgate1.apple.com for ; Fri, 12 Nov 2004 10:59:18 -0800 Received: from [17.202.41.137] (hoser.apple.com [17.202.41.137]) by relay3.apple.com (8.12.11/8.12.11) with ESMTP id iACIwkfi007611 for ; Fri, 12 Nov 2004 10:58:47 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: standards@freebsd.org From: Jordan Hubbard Date: Fri, 12 Nov 2004 10:58:54 -0800 X-Mailer: Apple Mail (2.619) Subject: Any objections to the following? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 18:58:49 -0000 RCS file: /home/ncvs/src/bin/rm/rm.c,v retrieving revision 1.51 diff -u -r1.51 rm.c --- rm.c 28 Oct 2004 08:25:30 -0000 1.51 +++ rm.c 12 Nov 2004 19:02:59 -0000 @@ -192,8 +192,11 @@ flags |= FTS_NOSTAT; if (Wflag) flags |= FTS_WHITEOUT; - if (!(fts = fts_open(argv, flags, NULL))) + if (!(fts = fts_open(argv, flags, NULL))) { + if (fflag) /* Don't emit diagnostic if force set */ + return; err(1, "fts_open"); + } while ((p = fts_read(fts)) != NULL) { switch (p->fts_info) { case FTS_DNR: This allows: rm -rf "" To behave the same as: rm -f "" Which is to say that no diagnostic will be emitted if you're forcing the operation (and ignoring errors). - Jordan From owner-freebsd-standards@FreeBSD.ORG Fri Nov 12 19:09:57 2004 Return-Path: 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 0533416A4D0 for ; Fri, 12 Nov 2004 19:09:57 +0000 (GMT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7523243D53 for ; Fri, 12 Nov 2004 19:09:56 +0000 (GMT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id iACJ9paa093137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Fri, 12 Nov 2004 14:09:51 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id iACJ9o5t093134; Fri, 12 Nov 2004 14:09:50 -0500 (EST) (envelope-from wollman) Date: Fri, 12 Nov 2004 14:09:50 -0500 (EST) From: Garrett Wollman Message-Id: <200411121909.iACJ9o5t093134@khavrinen.lcs.mit.edu> To: Jordan Hubbard In-Reply-To: References: X-Spam-Score: -19.8 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES X-Scanned-By: MIMEDefang 2.37 cc: standards@freebsd.org Subject: Any objections to the following? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 19:09:57 -0000 < said: > This allows: > rm -rf "" > To behave the same as: > rm -f "" > Which is to say that no diagnostic will be emitted if you're forcing > the operation (and ignoring errors). According to the Standard, only [ENOENT] diagnostics should be suppressed. -GAWollman From owner-freebsd-standards@FreeBSD.ORG Fri Nov 12 20:45:38 2004 Return-Path: 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 82BCC16A4D2 for ; Fri, 12 Nov 2004 20:45:38 +0000 (GMT) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CA0C43D3F for ; Fri, 12 Nov 2004 20:45:38 +0000 (GMT) (envelope-from jkh@brierdr.com) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id iACKpoPN020342 for ; Fri, 12 Nov 2004 12:51:50 -0800 (PST) Received: from relay2.apple.com (relay2.apple.com) by mailgate1.apple.com ; Fri, 12 Nov 2004 12:46:07 -0800 Received: from [17.202.41.137] (hoser.apple.com [17.202.41.137]) by relay2.apple.com (8.12.11/8.12.11) with ESMTP id iACKjKlK010453; Fri, 12 Nov 2004 12:45:20 -0800 (PST) In-Reply-To: <200411121909.iACJ9o5t093134@khavrinen.lcs.mit.edu> References: <200411121909.iACJ9o5t093134@khavrinen.lcs.mit.edu> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jordan Hubbard Date: Fri, 12 Nov 2004 12:45:28 -0800 To: Garrett Wollman X-Mailer: Apple Mail (2.619) cc: standards@freebsd.org Subject: Re: Any objections to the following? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 20:45:38 -0000 OK, good point. So, then this: +++ rm.c 12 Nov 2004 20:51:02 -0000 @@ -192,8 +192,11 @@ flags |= FTS_NOSTAT; if (Wflag) flags |= FTS_WHITEOUT; - if (!(fts = fts_open(argv, flags, NULL))) + if (!(fts = fts_open(argv, flags, NULL))) { + if (fflag && errno == ENOENT) /* Don't emit diagnostic if force set */ + return; err(1, "fts_open"); + } while ((p = fts_read(fts)) != NULL) { switch (p->fts_info) { case FTS_DNR: If no objections, I'll commit in the next 12 hours or so. - Jordan On Nov 12, 2004, at 11:09 AM, Garrett Wollman wrote: > < > said: > >> This allows: > >> rm -rf "" > >> To behave the same as: > >> rm -f "" > >> Which is to say that no diagnostic will be emitted if you're forcing >> the operation (and ignoring errors). > > According to the Standard, only [ENOENT] diagnostics should be > suppressed. > > -GAWollman > > _______________________________________________ > freebsd-standards@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-standards > To unsubscribe, send any mail to > "freebsd-standards-unsubscribe@freebsd.org" From owner-freebsd-standards@FreeBSD.ORG Fri Nov 12 21:19:48 2004 Return-Path: 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 1A59C16A4CE for ; Fri, 12 Nov 2004 21:19:48 +0000 (GMT) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CF4C43D2F for ; Fri, 12 Nov 2004 21:19:47 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])iACLJaKP009397; Sat, 13 Nov 2004 08:19:36 +1100 Received: from epsplex.bde.org (katana.zip.com.au [61.8.7.246]) iACLJYxc021963; Sat, 13 Nov 2004 08:19:35 +1100 Date: Sat, 13 Nov 2004 08:19:35 +1100 (EST) From: Bruce Evans X-X-Sender: bde@epsplex.bde.org To: Garrett Wollman In-Reply-To: <200411121909.iACJ9o5t093134@khavrinen.lcs.mit.edu> Message-ID: <20041113081837.D4041@epsplex.bde.org> References: <200411121909.iACJ9o5t093134@khavrinen.lcs.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: standards@freebsd.org cc: Jordan Hubbard Subject: Re: Any objections to the following? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 21:19:48 -0000 On Fri, 12 Nov 2004, Garrett Wollman wrote: > < said: > > > This allows: > > > rm -rf "" > > > To behave the same as: > > > rm -f "" > > > Which is to say that no diagnostic will be emitted if you're forcing > > the operation (and ignoring errors). > > According to the Standard, only [ENOENT] diagnostics should be > suppressed. Fortunately the errno for rm -rf "" is ENOENT, so the patch needs only a small fix. Bruce