tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
usr.bin
/
file
/
at
trash-bin2
1 folder
13 files
magdir
Add RISC-V elf executable detection. looks good jsg@
5 years ago
Makefile
Revert my changes in r1.60 back to nicm@'s latest for now.
8 years ago
file.1
Add --brief and --dereference, used by xdg-open/xdg-mime.
10 years ago
file.c
After fork(2) the pledge(2) in the parent proc can be reduced to "stdio rpath sendfd" so that it can call {l,}stat/open and sendfd for imsg_* in order to send fds to the child proc which is already pledged by recvfd to receive them
6 years ago
file.h
Remove old unused prototype, from Ilya Kaliman.
9 years ago
magic-common.c
Accept hexadecimal numbers without 0x if they aren't a valid decimal number.
10 years ago
magic-dump.c
Add support for 'name' and 'use' which allows more of the latest magic files to work unchanged. (We are still missing 'indirect' and a few other bits.)
10 years ago
magic-load.c
Replace fgetln with POSIX getline, even though file was using fgetln in the idiomatic safe way. Also, check for stream errors with ferror and err(1, "") in that case.
8 years ago
magic-test.c
Regex flags should include REG_NEWLINE and REG_ICASE should actually be used if specified.
7 years ago
magic.5
remove macro instances from arbitrary string width specifiers. for example
5 years ago
magic.h
Tidy up some #include lines.
10 years ago
text.c
Style nits; no binary change.
9 years ago
xmalloc.c
asprintf returns -1, not an arbitrary value < 0. Also upon error the (very sloppy specification) leaves an undefined value in *ret, so it is wrong to inspect it, the error condition is enough. discussed a little with nicm, and then much more with millert until we were exasperated
6 years ago
xmalloc.h
Merge xmalloc.[ch] files across base, skipping OpenSSH for now.
10 years ago