bug#1205: [BusyBox] bug#1205: BusyBox] bug#1205: mount handles links differently in 0.60
Tomi Ollila
Tomi.Ollila at sonera.com
Thu Aug 9 02:45:03 UTC 2001
Wednesday Aug 8 09:50:49 -0600 2001 Matt Kraai <kraai at alumni.carnegiemellon.edu> wrote:
> Howdy,
>
> I understand that glibc's strcpy(3) behaves as expected if the
> destination is before the source. I don't want to rely on this
> undefined behavior.
Can this be reliably tested in a configuration phase before `make' is run,
and there choose which function to use?
example:
int main ()
{
int f = 3;
char a[8] = " foobar";
char b[8] = "foobar";
strncpy(a, a + 1, 7);
strncpy(b + 1, b, 7);
if (memcmp(a, "foobar", 7) == 0) f ^= 1;
if (memcmp(b + 1, "foobar", 7) == 0) f ^= 2;
return f;
}
Is this example complete enough ?
> Matt
Tomi
More information about the busybox
mailing list