[PATCH] compat: allow override of depmod basedir

Jason A. Donenfeld Jason at zx2c4.com
Fri Jul 24 11:09:14 CEST 2020

Thanks for figuring this out. It looks like '/' as the default is
indeed safe, as this value is only used in this expression:

       cfg.dirnamelen = snprintf(cfg.dirname, PATH_MAX,
                                 root == NULL ? "" : root, cfg.kversion);

and // and / are equivalent.

I've applied this with slight modifications here:


More information about the WireGuard mailing list