Recent addition of append and noboot file checks broke NAND

Reported-by: Micael Henriksson <[EMAIL PROTECTED]>
Signed-off-by: Andy Green <[EMAIL PROTECTED]>
---

 src/phase2.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/phase2.c b/src/phase2.c
index 66d9150..30c9b15 100644
--- a/src/phase2.c
+++ b/src/phase2.c
@@ -66,6 +66,9 @@ int read_file(const char * filepath, u8 * destination, int 
size)
        case FS_FAT:
                /* FIXME */
        case FS_RAW:
+               /* any filename-related request in raw filesystem will fail */
+               if (filepath)
+                       return -1;
                puts("     RAW open: +");
                printdec(partition_offset_blocks);
                puts(" 512-byte blocks\n");


Reply via email to