diff options
Diffstat (limited to 'lib/libmtd.c')
-rw-r--r-- | lib/libmtd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmtd.c b/lib/libmtd.c index 8c0157e..8bc532f 100644 --- a/lib/libmtd.c +++ b/lib/libmtd.c @@ -561,7 +561,7 @@ libmtd_t libmtd_open(void) lib->offs64_ioctls = OFFS64_IOCTLS_UNKNOWN; - lib->sysfs_mtd = mkpath("/sys", SYSFS_MTD); + lib->sysfs_mtd = mkpath(SYSFS_ROOT, SYSFS_MTD); if (!lib->sysfs_mtd) goto out_error; |