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"