<p dir="ltr"><br>
><br>
> > Since you bring it up, I ran into this issue just yesterday with the rm -r<br>
> > dir bug. I'm using the static linked busybox and toybox binaries (toybox as<br>
> > the primary, busybox for everything else) in a chroot environment with musl<br>
> > libs and standard 3.16 kernel headers (with musl headers) if that helps you<br>
> > with the issue at all.  if there is anything i can do to narrow it down let<br>
> > me know.<br>
><br>
> It's that faccessat() says (in the man page) that I can feed in<br>
> AT_SYMLINK_NOFOLLOW and it works fine (albeit "is ignored") on glibc<br>
> and uclibc, but in musl they explicitly check for unknown flags and<br>
> return -EINVAL. To clarify: this owrks on _klibc_ but not in musl<br>
> because the maintainer went out of his way to break it. And when I<br>
> called him on it he said the man page should be changed to match his<br>
> opinion.<br>
><br>
> The fix I coded up that evening boiled down to adding a stanza to<br>
> portability.h something like:<br>
><br>
> #ifdef __MUSL__<br>
> // Long explanation of why musl is wrong.<br>
> #include <someheader.h><br>
> #define faccessat(A, B, C, D) faccessat(A, B, C, 0)<br>
> #endif<br>
><br>
> And then doing an echo "#define __MUSL__" to the end of features.h<br>
> during the musl build in aboriginal. But I didn't check it in, and</p>
<p dir="ltr">I was using the static compiled binary from your site when I had this issue. Are you sure its musl lib? Is that what your building toybox against currently?</p>
<p dir="ltr">> since then he's posted to the toybox list. (Which you'd never know<br>
> because the web archive only updates like twice a week, I need to poke<br>
> dreamhost about that but @dreamhostcares on twitter just says to use<br>
> the web interface to open a ticket. It's on the todo list...)<br>
><br>
> > Is the regex file the patch for grep -e?<br>
><br>
> Yes. Internally grep is doing "REGEX1\|REGEX2\|REGEX3" to glue 'em<br>
> together, and tre only supported | in extended regex mode, not as an<br>
> escape in normal regex. So I fixed that.<br>
><br>
> (I'll think about writing entirely posix compliant toybox code when<br>
> somebody can tell me how to implement ps or losetup that way. Until<br>
> then, linux has man pages that say we can do things, and I believe<br>
> them.)<br>
><br>
> Rob</p>
<p dir="ltr">Should I be applying this patch to gcc, musl, or toybox?<br>
</p>