chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] put config info in db for netdev
[elogind.git]
/
udevstart.c
diff --git
a/udevstart.c
b/udevstart.c
index eda6355b534e68e6b8cbc4502579255afbe9ab53..5e6606d535ac4fc5de658a3f3c5b2f08ffb35ee0 100644
(file)
--- a/
udevstart.c
+++ b/
udevstart.c
@@
-33,6
+33,7
@@
#include <unistd.h>
#include "logging.h"
#include <unistd.h>
#include "logging.h"
+#include "udev_lib.h"
#ifdef LOG
#ifdef LOG
@@
-61,8
+62,8
@@
static void udev_exec(const char *path, const char* subsystem)
char nosleep[] = "UDEV_NO_SLEEP=1";
char *env[] = { action, devpath, nosleep, NULL };
char nosleep[] = "UDEV_NO_SLEEP=1";
char *env[] = { action, devpath, nosleep, NULL };
- s
nprintf(devpath, MAX_PATHLEN, "DEVPATH=%s", path
);
-
devpath[MAX_PATHLEN-1] = '\0'
;
+ s
trcpy(devpath, "DEVPATH="
);
+
strfieldcat(devpath, path)
;
pid = fork();
switch (pid) {
pid = fork();
switch (pid) {