summaryrefslogtreecommitdiffstats
path: root/src/dirpart.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:17:08 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-04-05 11:17:08 +0200
commit79812fda52d51bf87814cb953b826de4af091db0 (patch)
tree9e288ff6f92c514ae8d11d76ef9cac01a865e997 /src/dirpart.c
parentbc39fa01d4b6be184cefd15681d7e1d129d48c20 (diff)
Distinguish between file listing not implemented and missing library
Diffstat (limited to 'src/dirpart.c')
-rw-r--r--src/dirpart.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/dirpart.c b/src/dirpart.c
index d7ef19b..4af873c 100644
--- a/src/dirpart.c
+++ b/src/dirpart.c
@@ -52,7 +52,7 @@
static dir_partition_t dir_partition_init(disk_t *disk, const partition_t *partition, const int verbose, dir_data_t *dir_data)
{
- dir_partition_t res=DIR_PART_ENOSYS;
+ dir_partition_t res=DIR_PART_ENOIMP;
if(is_part_fat(partition))
res=dir_partition_fat_init(disk, partition, dir_data, verbose);
else if(is_part_ntfs(partition))
@@ -112,6 +112,23 @@ dir_partition_t dir_partition(disk_t *disk, const partition_t *partition, const
log_info("\n");
switch(res)
{
+ case DIR_PART_ENOIMP:
+ screen_buffer_reset();
+#ifdef HAVE_NCURSES
+ aff_copy(window);
+ wmove(window,4,0);
+ aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk,partition);
+#endif
+ log_partition(disk,partition);
+ screen_buffer_add("Support for this filesystem hasn't been implemented.\n");
+ screen_buffer_to_log();
+ if(*current_cmd==NULL)
+ {
+#ifdef HAVE_NCURSES
+ screen_buffer_display(window,"",NULL);
+#endif
+ }
+ break;
case DIR_PART_ENOSYS:
screen_buffer_reset();
#ifdef HAVE_NCURSES