From patchwork Tue May 3 08:23:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 12835263 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11602C433EF for ; Tue, 3 May 2022 08:23:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232725AbiECI1E (ORCPT ); Tue, 3 May 2022 04:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbiECI1D (ORCPT ); Tue, 3 May 2022 04:27:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28EE329800 for ; Tue, 3 May 2022 01:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651566211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r/taJ9sE0u0byJCX8Eni1IyaMwiCBepL38AsaKItU+M=; b=T1dGFpa30N0qS9yDUGqeY6yaHkFl7UBhQ4/XpUnrEyC5j8yPuX6ZDxDaJHG/677tiF2nkg qBAkc97NaQz/kLQLcsOdNizeDsy3uQbRzSlscM+az00Vgo/xf4hDgi4fjR4QHbNzCA7mSR zzQNB3NuavJhUvXhg/NmX1zQt4YioUk= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-605-DU14Ls9PMcmspjwsah5qNg-1; Tue, 03 May 2022 04:23:29 -0400 X-MC-Unique: DU14Ls9PMcmspjwsah5qNg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 78FA71C01E83 for ; Tue, 3 May 2022 08:23:29 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (unknown [10.39.192.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id 95C9940CFD29; Tue, 3 May 2022 08:23:28 +0000 (UTC) From: Laszlo Ersek To: SELinux List , Laszlo Ersek Cc: "Richard W.M. Jones" , Petr Lautrbach Subject: [PATCH v2 1/5] setfiles: fix up inconsistent indentation Date: Tue, 3 May 2022 10:23:22 +0200 Message-Id: <20220503082326.11621-2-lersek@redhat.com> In-Reply-To: <20220503082326.11621-1-lersek@redhat.com> References: <20220503082326.11621-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org Commit 7ad84e7c8d4f ("Add restorecon -x option to not cross FS boundaries", 2020-06-18) used spaces vs. TABs inconsistently; run "unexpand" on the affected lines to make the indentation conform to the rest of the source code. Cc: "Richard W.M. Jones" Cc: Petr Lautrbach Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1794518 Signed-off-by: Laszlo Ersek --- policycoreutils/setfiles/setfiles.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/policycoreutils/setfiles/setfiles.c b/policycoreutils/setfiles/setfiles.c index ab7016aca9a6..be88be5d5497 100644 --- a/policycoreutils/setfiles/setfiles.c +++ b/policycoreutils/setfiles/setfiles.c @@ -368,13 +368,13 @@ int main(int argc, char **argv) case '0': null_terminated = 1; break; - case 'x': - if (iamrestorecon) { + case 'x': + if (iamrestorecon) { r_opts.xdev = SELINUX_RESTORECON_XDEV; - } else { + } else { usage(argv[0]); - } - break; + } + break; case 'T': nthreads = strtoull(optarg, &endptr, 10); if (*optarg == '\0' || *endptr != '\0')