Daryle C. Lewis
lewis at fel.com
Sun Mar 2 09:43:36 UTC 2003
char *cmd = "/usr/bin/ping -c %d %s";
ret = asprintf (&command, cmd, 1, "10.1.0.3");
printf ("%d %s\n", ret, command);
[root at hydra xmlobj]# ./test
27 /usr/bin/ping -c 1 10.1.0.3
[root at hydra xmlobj]# su nobody
[nobody at hydra xmlobj]$ ./test
I don't know quite how current this is, the root_fs is dated (via ftp)
At 04:16 AM 3/2/03, you wrote:
>On Sun Mar 02, 2003 at 04:01:38AM -0500, Daryle C. Lewis wrote:
> > It appears that asprintf under uclibc will only work when running as root.
> > I ran into this while chroot'd to root_fs while porting nagios to uclibc.
> > As always, I ask, Did I Miss Something? (DIMS seems to becoming the most
> > common
> > question of my life)
>I highly doubt this. Could you provide some sample code that
>demonstrates whatever problem you are seeing? I also assume
>you are working with the latest and greatest version of uClibc?
>Erik B. Andersen http://codepoet-consulting.com/
>--This message was written using 73% post-consumer electrons--
More information about the uClibc