aboutsummaryrefslogtreecommitdiffstats
path: root/nldev.c
diff options
context:
space:
mode:
Diffstat (limited to 'nldev.c')
-rw-r--r--nldev.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/nldev.c b/nldev.c
index 296de4d..3391ed1 100644
--- a/nldev.c
+++ b/nldev.c
@@ -231,16 +231,8 @@ main(int argc, char *argv[])
buf[sizeof(buf)-1] = '\0';
while (poll(&fds, 1, -1) > -1) {
- unsetenv("ACTION");
- unsetenv("DEVPATH");
- unsetenv("SUBSYSTEM");
- unsetenv("SEQNUM");
- unsetenv("MODALIAS");
- unsetenv("DEVNAME");
- unsetenv("DEVTYPE");
- unsetenv("MAJOR");
- unsetenv("MINOR");
- unsetenv("FIRMWARE");
+ clearenv();
+ setenv("PATH", "/sbin:/bin", 1);
iov.iov_base = &buf;
iov.iov_len = sizeof(buf);