summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--udevtrigger.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/udevtrigger.c b/udevtrigger.c
index e09ad98..2f1af35 100644
--- a/udevtrigger.c
+++ b/udevtrigger.c
@@ -295,7 +295,6 @@ static void scan_class(void)
int main(int argc, char *argv[], char *envp[])
{
- char base[PATH_SIZE];
struct stat statbuf;
int option;
@@ -331,8 +330,7 @@ int main(int argc, char *argv[], char *envp[])
scan_class();
/* scan "block" if it isn't a "class" */
- strlcpy(base, "/sys/class/block", sizeof(base));
- if (stat(base, &statbuf) != 0)
+ if (stat("/sys/class/block", &statbuf) != 0)
scan_block();
exit: