From: kay.sievers@vrfy.org Date: Sat, 3 Apr 2004 00:58:57 +0000 (-0800) Subject: [PATCH] udevstart fix X-Git-Tag: 024~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=5df33ccd8e03043597ff2b1777bbf5219e7080e3;hp=08b5da6a030f86810c100e465d9bfaa5113ba34d [PATCH] udevstart fix Sorry, udevstart needs a small cleanup after my recent copy/pastes. --- diff --git a/udevstart.c b/udevstart.c index 7e19c379a..5e6606d53 100644 --- a/udevstart.c +++ b/udevstart.c @@ -62,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 }; - strcpy(action, "DEVPATH=%s"); - strfieldcat(action, path); + strcpy(devpath, "DEVPATH="); + strfieldcat(devpath, path); pid = fork(); switch (pid) {