smdev

suckless mdev
git clone git://git.suckless.org/smdev
Log | Files | Refs | README | LICENSE

commit 23f3fb721b6ad37fff484ffd859596c7f9c77c5b
parent 87a607f4331ce9994047eac5b640a1216de892c5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  7 Apr 2014 17:32:12 +0200

smdev: remove $SMDEV, you can use $DEVNAME

... and other environment variables from uevent are exposed.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Msmdev.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/smdev.c b/smdev.c @@ -225,8 +225,6 @@ removedev(struct event *ev) if(rule->cmd) { if (chdir("/dev") < 0) eprintf("chdir /dev:"); - if (setenv("SMDEV", ev->devname, 1) < 0) - eprintf("setenv:"); runrulecmd(rule); } @@ -314,8 +312,6 @@ runrule: if(rule->cmd) { if (chdir("/dev") < 0) eprintf("chdir /dev:"); - if (setenv("SMDEV", ev->devname, 1) < 0) - eprintf("setenv:"); runrulecmd(rule); }