public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* process substitution to create a virtual file doesn't work in chroot environment
@ 2023-08-27 22:13 Cary Lewis
  2023-08-28  5:13 ` Cedric Blancher
  2023-08-28  8:50 ` Corinna Vinschen
  0 siblings, 2 replies; 4+ messages in thread
From: Cary Lewis @ 2023-08-27 22:13 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

In a cygwin process that is started either from mintty or bash directly the
following:

$ user=234

$ ./cat <(echo $user)
234
works as expected.

But after a chroot:

$ chroot . ./bash
user=234
$  ./cat <(echo $user)
./cat: /dev/fd/63: No such file or directory

In the directory I am chrooting in, I created a tmp folder, as well as
proc, proc/self, and proc/self/fd, and a dev directory.

Can someone explain why process substitution to create a virtual file
doesn't work in a chroot environment?

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-21 22:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-27 22:13 process substitution to create a virtual file doesn't work in chroot environment Cary Lewis
2023-08-28  5:13 ` Cedric Blancher
2023-08-28  8:50 ` Corinna Vinschen
2023-10-21 22:41   ` Cygwin |chroot()| "bad" - but what should replace it ? / was: " Roland Mainz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).