From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2071 invoked from network); 27 May 2022 03:29:05 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 27 May 2022 03:29:05 -0000 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by 9front; Thu May 26 23:27:13 -0400 2022 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id D5F59195E82 for <9front@9front.org>; Thu, 26 May 2022 23:27:08 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :to:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding; s=sasl; bh=cSiR7icc5xVPPfOb4nzb47iWm SCaIhe7PiPYOii9f58=; b=HeUSKcM+SLX74NsjG9VK5vLvjZMZN1MxPlJzVcchE BhQpUaEQZA40x1kM4QxnUiFcYIKd4C59577d+5g5WFfYI22Cvt1YRsiVdIEslI/E hg8QZSgcM9qAh6TqwUv/i/wSxz/3qr8G4iiDlQz5JcLpiB7qxivAl08nYVsJMNQr 8o= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id CF2E5195E81 for <9front@9front.org>; Thu, 26 May 2022 23:27:08 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from strider.localdomain (unknown [72.105.225.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 47497195E80 for <9front@9front.org>; Thu, 26 May 2022 23:27:05 -0400 (EDT) (envelope-from unobe@cpan.org) Message-ID: To: 9front@9front.org Date: Thu, 26 May 2022 20:25:08 -0700 From: unobe@cpan.org In-Reply-To: <3dd76207-af5a-eb0d-c56a-747ebe9965ad@posixcafe.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: E1AA30CE-DD6C-11EC-9DE8-C85A9F429DF0-09620299!pb-smtp20.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: advanced interface polling backend Subject: Re: [9front] [PATCH] Unmount to remove sharp devices. Reply-To: 9front@9front.org Precedence: bulk Quoth Jacob Moody : > On 5/26/22 17:36, unobe@cpan.org wrote: > > What happens if '!!!' is the prefix? Should the '!' set invert = 0 > > explicitly instead of invert--? Does '!0' allow access to all > > drivers? > > > > That switch case is not looped over. We only check the very first character > for the prefix. The rest of the string is interpreted to be the driver string. > In both of your cases the prefix is '!' and the driver string only contains '0' or '!', > neither are real drivers so you block nothing. :facepalm: Somehow I was reading the switch as a loop. Sorry for the noise.