forked from pool/systemd
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=789
This commit is contained in:
parent
714f5b5a68
commit
1be9d466f5
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
+#ifdef HAVE_KMOD
|
+#ifdef HAVE_KMOD
|
||||||
+static inline void udev_check_and_set_kmod(enum udev_builtin_cmd builtin_cmd, struct udev_event *event) {
|
+static inline void udev_check_and_set_kmod(enum udev_builtin_cmd builtin_cmd, struct udev_event *event) {
|
||||||
+ char filename[UTIL_PATH_SIZE];
|
+ char filename[UTIL_PATH_SIZE];
|
||||||
+ switch (builtin_cmd) {
|
+ switch (builtin_cmd) {
|
||||||
+ case UDEV_BUILTIN_KMOD:
|
+ case UDEV_BUILTIN_KMOD:
|
||||||
+ snprintf(filename, sizeof(filename), "/run/udev/kmod/%u", (unsigned)getpid());
|
+ snprintf(filename, sizeof(filename), "/run/udev/kmod/%u", (unsigned)getpid());
|
||||||
@ -23,7 +23,7 @@
|
|||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static inline void udev_check_and_unset_kmod(enum udev_builtin_cmd builtin_cmd, struct udev_event *event) {
|
+static inline void udev_check_and_unset_kmod(enum udev_builtin_cmd builtin_cmd, struct udev_event *event) {
|
||||||
+ char filename[UTIL_PATH_SIZE];
|
+ char filename[UTIL_PATH_SIZE];
|
||||||
+ switch (builtin_cmd) {
|
+ switch (builtin_cmd) {
|
||||||
+ case UDEV_BUILTIN_KMOD:
|
+ case UDEV_BUILTIN_KMOD:
|
||||||
+ snprintf(filename, sizeof(filename), "/run/udev/kmod/%u", (unsigned)getpid());
|
+ snprintf(filename, sizeof(filename), "/run/udev/kmod/%u", (unsigned)getpid());
|
||||||
|
Loading…
Reference in New Issue
Block a user