This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/10311] clone(CLONE_VM) fails with pthread_getattr_np on i386


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]