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] switch to generate the man pages during the normal build, not during the...
[elogind.git]
/
udevstart.c
diff --git
a/udevstart.c
b/udevstart.c
index 40dbaf2475bcadc9006aabbad0f973bc33bfd250..7e19c379a503ed8ff7f2885dd419ffd236f3157b 100644
(file)
--- a/
udevstart.c
+++ b/
udevstart.c
@@
-29,8
+29,11
@@
#include <ctype.h>
#include <dirent.h>
#include <sys/wait.h>
#include <ctype.h>
#include <dirent.h>
#include <sys/wait.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "logging.h"
#include "logging.h"
+#include "udev_lib.h"
#ifdef LOG
#ifdef LOG
@@
-59,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(action, "DEVPATH=%s"
);
+
strfieldcat(action, path)
;
pid = fork();
switch (pid) {
pid = fork();
switch (pid) {