forked from pool/systemd
4d2be9c235
update to v201 OBS-URL: https://build.opensuse.org/request/show/163799 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=363
23 lines
783 B
Diff
23 lines
783 B
Diff
From: Frederic Crozat <fcrozat@suse.com>
|
|
Date: Wed, 5 Dec 2012 15:13:27 +0000
|
|
Subject: fix devname prefix
|
|
|
|
fix modules.devname path, it isn't in /usr.
|
|
---
|
|
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 2a0bf60..6c2c2c9 100644
|
|
--- a/src/udev/udevd.c
|
|
+++ b/src/udev/udevd.c
|
|
@@ -827,7 +827,7 @@ static void static_dev_create_from_modules(struct udev *udev)
|
|
FILE *f;
|
|
|
|
uname(&kernel);
|
|
- strscpyl(modules, sizeof(modules), ROOTPREFIX "/lib/modules/", kernel.release, "/modules.devname", NULL);
|
|
+ strscpyl(modules, sizeof(modules), "/lib/modules/", kernel.release, "/modules.devname", NULL);
|
|
f = fopen(modules, "re");
|
|
if (f == NULL)
|
|
return;
|