summaryrefslogtreecommitdiff
path: root/mkfs.jffs2.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.jffs2.c')
-rw-r--r--mkfs.jffs2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c
index f042ae7..7255536 100644
--- a/mkfs.jffs2.c
+++ b/mkfs.jffs2.c
@@ -544,8 +544,11 @@ static int interpret_table_entry(struct filesystem_entry *root, char *line)
case 'b':
mode |= S_IFBLK;
break;
+ case 'l':
+ mode |= S_IFLNK;
+ break;
default:
- error_msg_and_die("Unsupported file type");
+ error_msg_and_die("Unsupported file type '%c'", type);
}
entry = find_filesystem_entry(root, name, mode);
if (entry) {
@@ -604,7 +607,7 @@ static int interpret_table_entry(struct filesystem_entry *root, char *line)
}
break;
default:
- error_msg_and_die("Unsupported file type");
+ error_msg_and_die("Unsupported file type '%c'", type);
}
}
free(name);