FreeCalypso > hg > freecalypso-tools
diff ffstools/tiffs-rd/object.c @ 919:1f27fc13eab7
tiffs: add support for extended filenames found in SE K2x0 FFS
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 31 Dec 2022 09:27:01 +0000 |
parents | e7502631a0f9 |
children |
line wrap: on
line diff
--- a/ffstools/tiffs-rd/object.c Fri Dec 30 22:04:30 2022 +0000 +++ b/ffstools/tiffs-rd/object.c Sat Dec 31 09:27:01 2022 +0000 @@ -13,6 +13,25 @@ #include "globals.h" #include "pathname.h" +object_name_mincheck(ino) +{ + struct inode_info *inf = inode_info[ino]; + u8 *p, *endp; + + if (!inf->len) + return(0); + p = inf->dataptr; + endp = p + inf->len; + for (; ; p++) { + if (p >= endp) + return(0); + if (!*p) + break; + } + inf->byte_after_name = p + 1; + return(1); +} + validate_obj_name(ino, root_special) { struct inode_info *inf = inode_info[ino];