This patch fixes the unchecked return value(CWE-252) issues reported by
the Coverity.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
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,