X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AD7333870865
Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none)
 header.from=office.targem.ru
Authentication-Results: sourceware.org;
 spf=fail smtp.mailfrom=ed@office.targem.ru
Date: Thu, 28 May 2020 10:31:18 -0700 (MST)
From: yoshi kakbudto <ed@office.targem.ru>
To: cygwin@cygwin.com
Message-ID: <1590687078818-0.post@n5.nabble.com>
In-Reply-To: <c117921e-388a-2ac2-dd95-3d66a6dae5be@cornell.edu>
References: <1562427636.19173685.1590653523730.JavaMail.zimbra@office.targem.ru>
 <c117921e-388a-2ac2-dd95-3d66a6dae5be@cornell.edu>
Subject: Re: Seems like a bug with mkfifo -m
MIME-Version: 1.0
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, KAM_DMARC_QUARANTINE,
 KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_FAIL, SPF_HELO_PASS, TXREP,
 URI_HEX autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

you say  'ls' is a problem source. Then i have to be more specific with the
problem to not miss any other possible problems around it.

My use case is this: I have an ssh rsa keys dynamically loaded in
environment variables.
Those variables then expaned and piped to the named pipe and then the pipe
instantly read by ssh-add. 
I know there could be other ways to ssh-add from environment, but its just
our specifics.
So the actual commands looks like this:

$ mkfifo -m 0600 somefifo

# The KEY contains ssh rsa private key data
$ echo $KEY > somefifo | ssh-add somefifo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'somefifo' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.







--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
