]> err.no Git - systemd/commitdiff
[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 7e19c379a503ed8ff7f2885dd419ffd236f3157b..5e6606d535ac4fc5de658a3f3c5b2f08ffb35ee0 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) {