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://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5df33ccd8e03043597ff2b1777bbf5219e7080e3;p=systemd [PATCH] udevstart fix Sorry, udevstart needs a small cleanup after my recent copy/pastes. --- diff --git a/udevstart.c b/udevstart.c index 7e19c379..5e6606d5 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) {