Diff between 96ffb02e2b4dd45a8b35b19b27776a1ce89d1ee0 and 1b0374157c92f3256f1a4d0e69489486ca3f4508
Changed Files
| File | Additions | Deletions | Status |
| peripheral/main.c | +2 | -1 | modified |
Full Patch
diff --git a/peripheral/main.c b/peripheral/main.c
index 6ce7291..86b5223 100644
--- a/peripheral/main.c
+++ b/peripheral/main.c
@@ -77,7 +77,8 @@ static void prepare_filesystem(void)
if (lstat(mount_table[i].target, &st) < 0) {
printf("Creating %s\n", mount_table[i].target);
- mkdir(mount_table[i].target, 0755);
+ if (mkdir(mount_table[i].target, 0755) < 0)
+ perror("Failed to create dir");
}
printf("Mounting %s to %s\n", mount_table[i].fstype,