From nobody Tue Jan 6 23:04:21 2026 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dm6Dy5NRJz6Ms4R for ; Tue, 06 Jan 2026 23:04:34 +0000 (UTC) (envelope-from jlduran@gmail.com) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dm6Dy2BQxz3npF for ; Tue, 06 Jan 2026 23:04:34 +0000 (UTC) (envelope-from jlduran@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-8be184d2fe8so21594685a.1 for ; Tue, 06 Jan 2026 15:04:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767740673; x=1768345473; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UpSn0aQG4p47wMFc0q4m2XAvljbrY7Mb5N2S3IJ8Bn4=; b=L02z1Md1m8cekRA5V8cHIVoJkn/Z5rtHlxfixf2Wn0CIR3WN38XFawBDdBLNOtVzdE 8QB+MTdpE1j2fSEh7seyCKvp+WuDCmZaKr3ZRmW3J8UM90p01jARFUqJDXfu+b3Ku8tK JLSqeXOfHmbwLiEr96mvQMqlAKnBFRn9LqI26iTFJZChiGTq8x21LHoN4Y1UN6BjW5R2 zMD08rjepbBh0Ppz7r3U2THiPYbpjJ/t+I6+ksHCf372k17FFWX4HIlJvwCOlU/4QUt0 RQiByOfckggjC2F27KLM5DGJnKGTsSTyjTpK6X73zpRgM+d3OByA7FqitNzOaOwe5ZA2 hOxw== X-Gm-Message-State: AOJu0YzGsW2DgnoF0WJyzZ9rg5fHOnkxxop3mtrJk9/AjnqdtSjPqMeZ O73oHAGDBin3QtDtqxXOeA/ICWlSwL4trLbAeQcif0ZpKDOBtfgbNNtmZviIJXaQ X-Gm-Gg: AY/fxX7QkKupGZzig/d6MZ7eQW18o7RM5+3jFQCg8rna2b68Ud4w+fkLvrzw12Pxtri vROCLdkVJPu27giqQg2XMLUNdzhni5UuKrRM+8M6EQzS4B0AmYC8aQrfqrtpIqUWMf0w72VbBp8 LkwXon0KNL43JPuwYAbJpJxbriDb/Yl/Mozgvk/rNMeTDWCICDSEDy9lNnzsl22qDQc4I0zgF4Y TnuOlfdxsfXzCHUNfo2JasDmP6nlGxTL/KC3SWZ6f1VMGI/G2zGXXVQ+s9KTFSwHIV9VjNGIxh4 Gmod2ZTiq9pdsA+bF5YOD47g+0DhoxfhXb+Pyu60nuO3v9y/HG2Sg0K6lQPUAKUN0MwaZP0Y9Od NYKD+MGjqrXMrQ3NYuuraviEKcDwolkjWSlTQUrL5g3ShLFrSnOgGEwq+uc+DDS9CK02BMc1akQ +oD72e1Y5earDWN8FhMafYgsm7+o+9tfbb5KjCF8/8sN1Ch1CWSn8= X-Google-Smtp-Source: AGHT+IHnbshst2R0vzuBNxjOMHcTv2Swbb3KdaQ/oWCJS/e5ebSa/JZTYZHvOGJEpsahRUjS1k8Sug== X-Received: by 2002:a05:620a:6914:b0:8b9:e0ea:af3b with SMTP id af79cd13be357-8c3893a051cmr54194985a.5.1767740672940; Tue, 06 Jan 2026 15:04:32 -0800 (PST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com. [209.85.160.176]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c37f4b9c31sm254610685a.20.2026.01.06.15.04.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jan 2026 15:04:32 -0800 (PST) Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-4ff93554211so987911cf.3 for ; Tue, 06 Jan 2026 15:04:32 -0800 (PST) X-Received: by 2002:ac8:570f:0:b0:4f0:299b:c785 with SMTP id d75a77b69052e-4ffb4acf414mr6486421cf.11.1767740672599; Tue, 06 Jan 2026 15:04:32 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: Reply-To: jlduran@freebsd.org From: Jose Luis Duran Date: Tue, 6 Jan 2026 20:04:21 -0300 X-Gmail-Original-Message-ID: X-Gm-Features: AQt7F2o_p_PWvVPM9ilt_DC6XpvoiVD7rWDfA4TU6UHwfQXV3Wcq5yBnexTnFoo Message-ID: Subject: Re: mtree(1) recent POLA violation To: Gleb Smirnoff Cc: current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dm6Dy2BQxz3npF On Tue, Jan 6, 2026 at 7:37=E2=80=AFPM Gleb Smirnoff = wrote: > > Hi, > > the recent mtree(1) import from NetBSD brought one change, that is a POLA > violation and I would also question if the new behavior is desired. The change stems from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D= 219467 > Before the import 'mtree -c -R all' would leave 'type=3D' keywords, despi= te '-R > all' asks for removing all keywords. The 'type=3D' is special, since thi= s > keyword is required to reconstruct a new spec. > > In other words before the import this was working: > > mtree -c -R all | mtree -C > > Now this is broken. The above was standard idiom to compare installed to= tree > to a specification. Now the correct syntax to get the same behavior is t= his: > > mtree -c -k type | mtree -C > > I'll let other to decide do we want to fix this POLA violation or not. At= least > this needs to be recorded in Release notes. Right, according to the manual page: -k : Use the "type" keyword plus the specified (whitespace or comma separated) keywords instead of the current set of keywords. If "all" is specified, use all of the other keywords. If the "type" keyword is not desired, suppress it with "-R type". -R : Remove the specified (whitespace or comma separated) keywords from the current set of keywords. If "all" is specified, remove all of the other keywords. So, the previous behavior was bugged. It now does what it says it should. --=20 Jose Luis Duran