[lxc-devel] [PATCH 2/2] lxc-start: allow configuring explicit path to overlayfs workdir

Marcin Bachry hegel666 at gmail.com
Mon May 4 14:53:24 UTC 2015


2015-05-04 15:53 GMT+02:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
>> -     dup = alloca(strlen(bdev->src)+1);
>> -     strcpy(dup, bdev->src);
>> +     dup = strdupa(bdev->src);
>
> as i recall strdupa isn't defined in the android c library,
> so this needs to be split up.

Ah, so that's the reason. I checked #define GNU_SOURCE above and
assumed strdup is ok. I'll resend the patch.


More information about the lxc-devel mailing list