This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386
- From: "martinrb at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 18 Sep 2018 18:12:08 +0000
- Subject: [Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386
- Auto-submitted: auto-generated
- References: <bug-10311-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=10311
--- Comment #15 from Martin Buchholz <martinrb at google dot com> ---
(In reply to Rich Felker from comment #14)
> To elaborate on what Szabolcs Nagy said in #13 about using the shell, it can
> be done safely with no need for quoting on the caller side via something
> like (example for cd):
>
> char *argv[] = { "sh", "-c", "cd \"$1\" && shift && exec \"$@\"", "sh", dir,
> prog, argv1, argv2, ..., 0 }
Using sh seems risky and insufficient. Are you finding sh via user's PATH?
Where is the POSIX version of sh? Maybe it's /usr/xpg4/bin/sh ?! Is cd
subject to the CDPATH environment variable? What about closing file
descriptors? etc ...
--
You are receiving this mail because:
You are on the CC list for the bug.