On 8/7/25 21:30, Dave Young wrote:
I do see there are a few similar usages in init/do_mounts.c, probably
it is old stuff and it just works.  But I think making rootfs_flags as
an array and copying str into it is the right way.

The lifespan of the string ends before PID 1 gets launched. The copy would be unnecessary and either perform an allocation or impose a gratuitous length limit.

Rob

Reply via email to