Ignore errors for symlink() - smdev - suckless mdev
(HTM) git clone git://git.suckless.org/smdev
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 18be0760ce0ff089f6bfe802b81ef7fd8f6c7cd0
(DIR) parent 08dd361bc017b26f9f1126210da7243e3401f98a
(HTM) Author: sin <sin@2f30.org>
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(-)
---
(DIR) 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: