Ignore errors for symlink() - smdev - suckless mdev | |
git clone git://git.suckless.org/smdev | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 18be0760ce0ff089f6bfe802b81ef7fd8f6c7cd0 | |
parent 08dd361bc017b26f9f1126210da7243e3401f98a | |
Author: sin <[email protected]> | |
Date: Thu, 5 Sep 2013 14:28:15 +0100 | |
Ignore errors for symlink() | |
Diffstat: | |
M smdev.c | 4 +--- | |
1 file changed, 1 insertion(+), 3 deletions(-) | |
--- | |
diff --git a/smdev.c b/smdev.c | |
@@ -309,9 +309,7 @@ createdev(struct event *ev) | |
if (rule->path && rule->path[0] == '>') { | |
/* ev->devname is the original device name */ | |
snprintf(buf, sizeof(buf), "/dev/%s", ev->devname); | |
- if (symlink(rpath.path, buf) < 0) | |
- eprintf("symlink %s -> %s:", | |
- buf, rpath.path); | |
+ symlink(rpath.path, buf); | |
} | |
runrule: |