chiark / gitweb /
[PATCH] udevstart fix
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 3 Apr 2004 00:58:57 +0000 (16:58 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:14 +0000 (21:35 -0700)
Sorry, udevstart needs a small cleanup after my recent copy/pastes.

udevstart.c

index 7e19c37..5e6606d 100644 (file)
@@ -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) {