Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-02 | Fix file for Java class files, improve script detection, and add tests. | Elliott Hughes | |
2016-02-29 | do_regular_file() prints output line, don't fall through to print default. | Rob Landley | |
2016-02-29 | Fix inverted test. | Rob Landley | |
2016-02-29 | pending/file: add cpio, tar, zip formats. | Isaac Dunham | |
2016-02-29 | Fix a typo from last time, and Isaac Dunham's todo list: | Rob Landley | |
- per POSIX, 'cannot open' must be in the 'type' string if open() fails (both EPERM and ENOENT); we only do that if open() succeeds and fstat(fd) fails. - symlink detection (as per POSIX) won't work: opening them O_RDONLY results in following the link, then we fstat() the fd. - file 'FIFO' causes a hang; open() won't return till there's a writer. | |||
2016-02-29 | Second pass at the ELF type table. | Rob Landley | |
2016-02-17 | Add dynamic/static checking to file (printing dynamic linker if found). | Rob Landley | |
2016-02-15 | Cleanup pass on file.c, and add detection of different ELF architectures. | Rob Landley | |
2016-02-14 | Implement file(1). | Elliott Hughes | |
Unlike the POSIX file(1), there's no magic file here, just hard-coded common (non-obsolete) file formats. Personally most of my use of file(1) is as a one-line readelf(1) summarizer, so although I assume a full POSIX file(1) is out of scope (because just the database would likely be larger than all the rest of toybox), a subset that only supports in-use file types actually covers most of the use cases I encounter personally. Also fix peek_be/peek_le. |