> How about spawn() does an fstat on the target first, and immediately
> (but silently) returns an error code if not present?  Then the caller
> can decide what to do with it.
>

Not that simple, John. spawn() accounts for $PATH, so fstat() should
iterate thru $PATH too. Inefficient.
mount.c uses (at line #457)
rc = wait4pid(spawn(args));

AFAIKS, all we need is to bb_error_msg() there if rc != 0 unless -q
(quiet mode) is given to mount.

--
Vladimir
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to