GNU logs - #34009, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34009: warn that mkdir --mode doesn't affect parents created
Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 07 Jan 2019 15:37:01 +0000
Resent-Message-ID: <handler.34009.B.154687540720183 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 34009
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 34009 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.154687540720183
          (code B ref -1); Mon, 07 Jan 2019 15:37:01 +0000
Received: (at submit) by debbugs.gnu.org; 7 Jan 2019 15:36:47 +0000
Received: from localhost ([127.0.0.1]:48862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ggWxL-0005FS-5u
	for submit <at> debbugs.gnu.org; Mon, 07 Jan 2019 10:36:47 -0500
Received: from eggs.gnu.org ([209.51.188.92]:44572)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1ggWxI-0005FC-FW
 for submit <at> debbugs.gnu.org; Mon, 07 Jan 2019 10:36:45 -0500
Received: from lists.gnu.org ([209.51.188.17]:52758)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1ggWxC-0007kI-GX
 for submit <at> debbugs.gnu.org; Mon, 07 Jan 2019 10:36:38 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54752)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1ggWxB-0000Ll-LY
 for bug-coreutils@HIDDEN; Mon, 07 Jan 2019 10:36:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FROM_EXCESS_BASE64,
 RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1ggWxA-0007j6-TL
 for bug-coreutils@HIDDEN; Mon, 07 Jan 2019 10:36:37 -0500
Received: from ostrich.birch.relay.mailchannels.net ([23.83.209.138]:44534)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1ggWxA-0007fH-F0
 for bug-coreutils@HIDDEN; Mon, 07 Jan 2019 10:36:36 -0500
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id A3A812843EE
 for <bug-coreutils@HIDDEN>; Mon,  7 Jan 2019 15:36:33 +0000 (UTC)
Received: from pdx1-sub0-mail-a27.g.dreamhost.com (unknown [100.96.30.62])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 707012843CD
 for <bug-coreutils@HIDDEN>; Mon,  7 Jan 2019 15:36:33 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jidanni@HIDDEN
Received: from pdx1-sub0-mail-a27.g.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.16.2); Mon, 07 Jan 2019 15:36:33 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Macabre-Arch: 696a82c253f3affd_1546875393527_2337522332
X-MC-Loop-Signature: 1546875393527:1624668493
X-MC-Ingress-Time: 1546875393526
Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 3724D80631
 for <bug-coreutils@HIDDEN>; Mon,  7 Jan 2019 07:36:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 jidanni.org; bh=7gXXHIK1qM61e7sR4YR+RokamDs=; b=E/3WmLgNa0g4rBak
 2CRBohP2TmX/0S6bCGbGNepcL6msZAuJbogJ0lf4+ox8X7ZoJYw01ZFPvp/dasJE
 qr+PT5rYGVeZcoe8WgttAfNwzNA650eu1neOU5pY9wZhFx1h6CRhO7NXU7BWUudw
 yIn8K9OZiO24w1chBzBy705o4eM=
Received: from jidanni.org (220-140-5-239.dynamic-ip.hinet.net [220.140.5.239])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id B61B18060B
 for <bug-coreutils@HIDDEN>; Mon,  7 Jan 2019 07:36:32 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a27
From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN>
Date: Mon, 07 Jan 2019 23:36:28 +0800
Message-ID: <87a7kc5vk3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrvdejgdejjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppedvvddtrddugedtrdehrddvfeelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepvddvtddrudegtddrhedrvdefledprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdgtohhrvghuthhilhhssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 23.83.209.138
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On man mkdir

       -m, --mode=MODE
              set file mode (as in chmod), not a=rwx - umask

       -p, --parents
              no error if existing, make parent directories as needed

do warn that --mode doesn't affect any parents created.

$ mkdir --mode 700 -p /tmp/g/h/i
$ find /tmp/g -ls
    55795      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g
    55796      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g/h
    55797      0 drwx------   2 jidanni  jidanni        40 Jan  7 23:30 /tmp/g/h/i

Also warn on (info "(coreutils) mkdir invocation") more directly. Thanks.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN>
Subject: bug#34009: Acknowledgement (warn that mkdir --mode doesn't affect
 parents created)
Message-ID: <handler.34009.B.154687540720183.ack <at> debbugs.gnu.org>
References: <87a7kc5vk3.fsf@HIDDEN>
X-Gnu-PR-Message: ack 34009
X-Gnu-PR-Package: coreutils
Reply-To: 34009 <at> debbugs.gnu.org
Date: Mon, 07 Jan 2019 15:37:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-coreutils@HIDDEN

If you wish to submit further information on this problem, please
send it to 34009 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
34009: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34009
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34009: warn that mkdir --mode doesn't affect parents created
Resent-From: Assaf Gordon <assafgordon@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 11 Jan 2019 08:51:02 +0000
Resent-Message-ID: <handler.34009.B34009.154719660328493 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34009
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson <jidanni@HIDDEN>, 34009 <at> debbugs.gnu.org
Received: via spool by 34009-submit <at> debbugs.gnu.org id=B34009.154719660328493
          (code B ref 34009); Fri, 11 Jan 2019 08:51:02 +0000
Received: (at 34009) by debbugs.gnu.org; 11 Jan 2019 08:50:03 +0000
Received: from localhost ([127.0.0.1]:54504 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ghsVu-0007PN-7E
	for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:50:02 -0500
Received: from mail-pf1-f180.google.com ([209.85.210.180]:38205)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1ghsVr-0007Ou-MD; Fri, 11 Jan 2019 03:50:00 -0500
Received: by mail-pf1-f180.google.com with SMTP id q1so6667948pfi.5;
 Fri, 11 Jan 2019 00:49:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=Iqv3u8piGZQIYEVWh5i0maOfWf4XTiHrhylRf/FKVaLGaIgtjmnh6KfOdsYfeP9IS3
 A6NEtohd21v1NsfR/tTDSuRW7i0qhJMxwaZe5XPuC+2sKSM/yDI49tAUqvdtZiS4psxR
 qXeUtC5IsoqOlMw76MuLxqUa+301+OMqZD9q0lPYMwVvYgAe6juFRoNjLjMCYA5oQUZT
 4/IxJ/Q0letgeL7u9cK46wfN4uSZmOifPBqlus+Amr7If8087D3kWMm5miPhvRXsXhHT
 nnAGThpzYWl/UBScvQZjkG2egz/ogySzs991oqMkTIh+akT6gUqhj2X82/FLjbo9MQ7l
 dKoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=rGFfCtZSYpIfAx6JbIU6VAKeO0gvkdHA1+nycUO0mdY81E8xCDaz8cURvUHUsthrpw
 zbMHSPNtFElYkZkfXb5IIItw//sGvGLB0kBThQsD4RuIri6DXs6RsNTd6rHFwvrcXDlo
 g4rVGtr5ln+zgCZgqW1roJvSxJp7kdA5+8V/Bw3jhnA6/BTHpoSTMMAA1CY4uzrKIyYI
 2AFeoa79u/s2kUB8OxppxPJFgN4h9dOeh7yYqyje6LsC4kRrpiI7I8GdLN4ZxplbjtWm
 fpBBUD5shLvsMbBVptQWLiWWcrHbdMq70ktn7kk3a/NZxmgSZMeXYgNmHjAS+dgXNmFz
 1z7w==
X-Gm-Message-State: AJcUukc91UKMILySlIZy4GE8XXL4qkp1eqWSsq/X+Ta/IMWWhthQ8gar
 BbDLWOU6/CBmYgm1/87s2XeEGLLS
X-Google-Smtp-Source: ALg8bN7RzDrLuTVCWiCF/0ajHGXyAmlxOT6M1Kv+dhpeVrzQk7BQitrMuYedUzkExNubDf14LmPB5A==
X-Received: by 2002:a65:49cd:: with SMTP id t13mr12743724pgs.376.1547196593065; 
 Fri, 11 Jan 2019 00:49:53 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 y5sm148801200pge.49.2019.01.11.00.49.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 11 Jan 2019 00:49:52 -0800 (PST)
References: <87a7kc5vk3.fsf@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <ba2e5aca-e308-7cb4-3767-b6084caf84d3@HIDDEN>
Date: Fri, 11 Jan 2019 01:49:50 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <87a7kc5vk3.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34009 wishlist
retitle 34009 doc: mkdir: warn that --mode doesn't affect parents
stop

Hello,

On 2019-01-07 8:36 a.m., 積丹尼 Dan Jacobson wrote:
> 
> do warn that --mode doesn't affect any parents created.
> 
> $ mkdir --mode 700 -p /tmp/g/h/i
> $ find /tmp/g -ls
>      55795      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g
>      55796      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g/h
>      55797      0 drwx------   2 jidanni  jidanni        40 Jan  7 23:30 /tmp/g/h/i
> 
> Also warn on (info "(coreutils) mkdir invocation") more directly. Thanks.

The info manual does contain a short sentence about parents' modes:
  "To set the file permission bits of any newly-created parent
   directories to a value [...]"

But this can be improved.

Marking as wishlist. Patches are welcomed.

regards,
  - assaf'





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 11 Jan 2019 08:50:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 03:50:02 2019
Received: from localhost ([127.0.0.1]:54502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ghsVt-0007PI-R1
	for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:50:02 -0500
Received: from mail-pf1-f180.google.com ([209.85.210.180]:38205)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1ghsVr-0007Ou-MD; Fri, 11 Jan 2019 03:50:00 -0500
Received: by mail-pf1-f180.google.com with SMTP id q1so6667948pfi.5;
 Fri, 11 Jan 2019 00:49:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=Iqv3u8piGZQIYEVWh5i0maOfWf4XTiHrhylRf/FKVaLGaIgtjmnh6KfOdsYfeP9IS3
 A6NEtohd21v1NsfR/tTDSuRW7i0qhJMxwaZe5XPuC+2sKSM/yDI49tAUqvdtZiS4psxR
 qXeUtC5IsoqOlMw76MuLxqUa+301+OMqZD9q0lPYMwVvYgAe6juFRoNjLjMCYA5oQUZT
 4/IxJ/Q0letgeL7u9cK46wfN4uSZmOifPBqlus+Amr7If8087D3kWMm5miPhvRXsXhHT
 nnAGThpzYWl/UBScvQZjkG2egz/ogySzs991oqMkTIh+akT6gUqhj2X82/FLjbo9MQ7l
 dKoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=rGFfCtZSYpIfAx6JbIU6VAKeO0gvkdHA1+nycUO0mdY81E8xCDaz8cURvUHUsthrpw
 zbMHSPNtFElYkZkfXb5IIItw//sGvGLB0kBThQsD4RuIri6DXs6RsNTd6rHFwvrcXDlo
 g4rVGtr5ln+zgCZgqW1roJvSxJp7kdA5+8V/Bw3jhnA6/BTHpoSTMMAA1CY4uzrKIyYI
 2AFeoa79u/s2kUB8OxppxPJFgN4h9dOeh7yYqyje6LsC4kRrpiI7I8GdLN4ZxplbjtWm
 fpBBUD5shLvsMbBVptQWLiWWcrHbdMq70ktn7kk3a/NZxmgSZMeXYgNmHjAS+dgXNmFz
 1z7w==
X-Gm-Message-State: AJcUukc91UKMILySlIZy4GE8XXL4qkp1eqWSsq/X+Ta/IMWWhthQ8gar
 BbDLWOU6/CBmYgm1/87s2XeEGLLS
X-Google-Smtp-Source: ALg8bN7RzDrLuTVCWiCF/0ajHGXyAmlxOT6M1Kv+dhpeVrzQk7BQitrMuYedUzkExNubDf14LmPB5A==
X-Received: by 2002:a65:49cd:: with SMTP id t13mr12743724pgs.376.1547196593065; 
 Fri, 11 Jan 2019 00:49:53 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 y5sm148801200pge.49.2019.01.11.00.49.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 11 Jan 2019 00:49:52 -0800 (PST)
Subject: Re: bug#34009: warn that mkdir --mode doesn't affect parents created
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 34009 <at> debbugs.gnu.org
References: <87a7kc5vk3.fsf@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <ba2e5aca-e308-7cb4-3767-b6084caf84d3@HIDDEN>
Date: Fri, 11 Jan 2019 01:49:50 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <87a7kc5vk3.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34009 wishlist
retitle 34009 doc: mkdir: warn that --mode doesn't affect parents
stop

Hello,

On 2019-01-07 8:36 a.m., 積丹尼 Dan Jacobson wrote:
> 
> do warn that --mode doesn't affect any parents created.
> 
> $ mkdir --mode 700 -p /tmp/g/h/i
> $ find /tmp/g -ls
>      55795      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g
>      55796      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g/h
>      55797      0 drwx------   2 jidanni  jidanni        40 Jan  7 23:30 /tmp/g/h/i
> 
> Also warn on (info "(coreutils) mkdir invocation") more directly. Thanks.

The info manual does contain a short sentence about parents' modes:
  "To set the file permission bits of any newly-created parent
   directories to a value [...]"

But this can be improved.

Marking as wishlist. Patches are welcomed.

regards,
  - assaf'





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 11 Jan 2019 08:50:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 03:50:02 2019
Received: from localhost ([127.0.0.1]:54502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ghsVt-0007PI-R1
	for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 03:50:02 -0500
Received: from mail-pf1-f180.google.com ([209.85.210.180]:38205)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1ghsVr-0007Ou-MD; Fri, 11 Jan 2019 03:50:00 -0500
Received: by mail-pf1-f180.google.com with SMTP id q1so6667948pfi.5;
 Fri, 11 Jan 2019 00:49:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=Iqv3u8piGZQIYEVWh5i0maOfWf4XTiHrhylRf/FKVaLGaIgtjmnh6KfOdsYfeP9IS3
 A6NEtohd21v1NsfR/tTDSuRW7i0qhJMxwaZe5XPuC+2sKSM/yDI49tAUqvdtZiS4psxR
 qXeUtC5IsoqOlMw76MuLxqUa+301+OMqZD9q0lPYMwVvYgAe6juFRoNjLjMCYA5oQUZT
 4/IxJ/Q0letgeL7u9cK46wfN4uSZmOifPBqlus+Amr7If8087D3kWMm5miPhvRXsXhHT
 nnAGThpzYWl/UBScvQZjkG2egz/ogySzs991oqMkTIh+akT6gUqhj2X82/FLjbo9MQ7l
 dKoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=w9zEEFz7GAhOvPp0AboFeKQpbcRk8jQHeMfThEdw00k=;
 b=rGFfCtZSYpIfAx6JbIU6VAKeO0gvkdHA1+nycUO0mdY81E8xCDaz8cURvUHUsthrpw
 zbMHSPNtFElYkZkfXb5IIItw//sGvGLB0kBThQsD4RuIri6DXs6RsNTd6rHFwvrcXDlo
 g4rVGtr5ln+zgCZgqW1roJvSxJp7kdA5+8V/Bw3jhnA6/BTHpoSTMMAA1CY4uzrKIyYI
 2AFeoa79u/s2kUB8OxppxPJFgN4h9dOeh7yYqyje6LsC4kRrpiI7I8GdLN4ZxplbjtWm
 fpBBUD5shLvsMbBVptQWLiWWcrHbdMq70ktn7kk3a/NZxmgSZMeXYgNmHjAS+dgXNmFz
 1z7w==
X-Gm-Message-State: AJcUukc91UKMILySlIZy4GE8XXL4qkp1eqWSsq/X+Ta/IMWWhthQ8gar
 BbDLWOU6/CBmYgm1/87s2XeEGLLS
X-Google-Smtp-Source: ALg8bN7RzDrLuTVCWiCF/0ajHGXyAmlxOT6M1Kv+dhpeVrzQk7BQitrMuYedUzkExNubDf14LmPB5A==
X-Received: by 2002:a65:49cd:: with SMTP id t13mr12743724pgs.376.1547196593065; 
 Fri, 11 Jan 2019 00:49:53 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 y5sm148801200pge.49.2019.01.11.00.49.51
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 11 Jan 2019 00:49:52 -0800 (PST)
Subject: Re: bug#34009: warn that mkdir --mode doesn't affect parents created
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 34009 <at> debbugs.gnu.org
References: <87a7kc5vk3.fsf@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <ba2e5aca-e308-7cb4-3767-b6084caf84d3@HIDDEN>
Date: Fri, 11 Jan 2019 01:49:50 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <87a7kc5vk3.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

severity 34009 wishlist
retitle 34009 doc: mkdir: warn that --mode doesn't affect parents
stop

Hello,

On 2019-01-07 8:36 a.m., 積丹尼 Dan Jacobson wrote:
> 
> do warn that --mode doesn't affect any parents created.
> 
> $ mkdir --mode 700 -p /tmp/g/h/i
> $ find /tmp/g -ls
>      55795      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g
>      55796      0 drwxr-xr-x   3 jidanni  jidanni        60 Jan  7 23:30 /tmp/g/h
>      55797      0 drwx------   2 jidanni  jidanni        40 Jan  7 23:30 /tmp/g/h/i
> 
> Also warn on (info "(coreutils) mkdir invocation") more directly. Thanks.

The info manual does contain a short sentence about parents' modes:
  "To set the file permission bits of any newly-created parent
   directories to a value [...]"

But this can be improved.

Marking as wishlist. Patches are welcomed.

regards,
  - assaf'






Last modified: Fri, 11 Jan 2019 09:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.