Add comment for ev->devname - smdev - suckless mdev | |
git clone git://git.suckless.org/smdev | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit fdc8d9bc59f0a945fe28932bdfbe73c4aa772362 | |
parent c228339545934e7ddf3f25ad262348488a36c01c | |
Author: sin <[email protected]> | |
Date: Fri, 23 Aug 2013 17:52:11 +0100 | |
Add comment for ev->devname | |
Diffstat: | |
M smdev.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/smdev.c b/smdev.c | |
@@ -280,6 +280,7 @@ createdev(struct event *ev) | |
eprintf("chown %s:", devpath); | |
if (rule->path && rule->path[0] == '>') { | |
+ /* ev->devname is the original device name */ | |
snprintf(buf, sizeof(buf), "/dev/%s", ev->devname); | |
if (symlink(devpath, buf) < 0) | |
eprintf("symlink %s -> %s:", |