Introduction
Introduction Statistics Contact Development Disclaimer Help
smdev: remove $SMDEV, you can use $DEVNAME - smdev - suckless mdev
git clone git://git.suckless.org/smdev
Log
Files
Refs
README
LICENSE
---
commit 23f3fb721b6ad37fff484ffd859596c7f9c77c5b
parent 87a607f4331ce9994047eac5b640a1216de892c5
Author: Hiltjo Posthuma <[email protected]>
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 <[email protected]>
Diffstat:
M smdev.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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.