[systemd-devel] [PATCH 3/3] udevd: use ROOTPREFIX to create path to modules.devname

Kay Sievers kay at vrfy.org
Sun Jul 1 18:11:42 PDT 2012


On Mon, Jul 2, 2012 at 1:37 AM, Dave Reisner <dreisner at archlinux.org> wrote:
> ---
>  src/udev/udevd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/udev/udevd.c b/src/udev/udevd.c
> index bb33fb4..cb3b8a4 100644
> --- a/src/udev/udevd.c
> +++ b/src/udev/udevd.c
> @@ -806,7 +806,7 @@ static void static_dev_create_from_modules(struct udev *udev)
>          FILE *f;
>
>          uname(&kernel);
> -        util_strscpyl(modules, sizeof(modules), "/lib/modules/", kernel.release, "/modules.devname", NULL);
> +        util_strscpyl(modules, sizeof(modules), ROOTPREFIX "/lib/modules/", kernel.release, "/modules.devname", NULL);
>          f = fopen(modules, "r");
>          if (f == NULL)
>                  return;

Applied.

Thanks,
Kay


More information about the systemd-devel mailing list