Up to [local] / src / usr.bin / file
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 15 19:45:51 2018 UTC (6 years, 4 months ago) by brynet
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
HEAD
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)
Revert my changes in r1.60 back to nicm@'s latest for now. Fixes "file *|grep" breakage reported by espie@ ok nicm, deraadt
Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 28 13:37:56 2017 UTC (6 years, 11 months ago) by brynet
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.16: +1 -4 lines
Diff to previous 1.16 (colored)
Simplify file(1) by removing the no longer necessary parent/child separation and just drop privileges in the main process. Also allows for a tighter "stdio" pledge. passing regress tests still pass ok nicm@ with helpful feedback
Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 4 07:25:59 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
Add tame(2) to file(1) and drop the old systrace(4) sandbox. tame(2) is only applied to the child process, which requires the parent to not pass directory file descriptors (tame("cmsg") does not allow it). Because file(1) is already privsep, the permissions in the child can be quickly restricted: first to "stdio cmsg getpw proc" then after the privdrop to "stdio cmsg".
Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 27 13:52:17 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)
Use a systrace(4) sandbox with a short whitelist of allowed syscalls for the file(1) child process. Based on similar code in ssh sandbox-systrace.c. Idea and help from deraadt@.
Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 27 13:41:45 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.13: +4 -1 lines
Diff to previous 1.13 (colored)
Add simple privilege separation to file(1). Two processes, file descriptors and a few other bits are opened in parent and passed to child using imsg. Child currently drops to "nobody" but this will change.
Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 24 16:24:11 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.12: +22 -19 lines
Diff to previous 1.12 (colored)
New implementation of the file(1) utility. This is a simplified, modernised version with a nearly complete magic(5) parser but omits some of the complex builtin tests (notably ELF) and has a reduced set of options. ok deraadt
Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 14 21:28:10 2009 UTC (15 years, 1 month ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.11: +15 -7 lines
Diff to previous 1.11 (colored)
force magic file to include all magdir files in alphabetical order, preparing the way for upcoming update to file 4.24 almost entirely written by espie@ "Go ahead, commit it." espie@
Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 9 23:00:42 2008 UTC (15 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
protect against .orig files resulting from a patch.
Revision 1.10 / (download) - annotate - [select for diffs], Wed May 19 02:32:35 2004 UTC (20 years ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
big update to file 4.09. ok ian@
Revision 1.8.22.1 / (download) - annotate - [select for diffs], Wed Mar 12 02:14:16 2003 UTC (21 years, 3 months ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)
Pull patch from current. Fix by ian@ Bring in readelf.c from Christos' version 3.41 to head off a local stack attack noted by iDefense, and for more complete 64-bit ELF support. Add hand-made config.h to avoid running configure but still be able to use Christos' code. In print.c add error(...)-->err(1,...) wrapper. Tested on i386, sparc64, macppc. ok millert@
Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 3 22:24:08 2003 UTC (21 years, 3 months ago) by ian
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4,
OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
Bring in readelf.c from Christos' version 3.41 to head off a local stack attack noted by iDefense, and for more complete 64-bit ELF support. Add hand-made config.h to avoid running configure but still be able to use Christos' code. In print.c add error(...)-->err(1,...) wrapper. Tested on i386, sparc64, macppc.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 2 15:25:52 1997 UTC (26 years, 9 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2
Branch point for: OPENBSD_3_2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
include files that start with numbers
Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 27 20:56:43 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)
COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIP This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 9 23:58:15 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)
Updates file(1) to version 3.22 by way to NetBSD.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 8 14:32:25 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
install -> ${INSTALL}, -c -> ${COPY}
Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 27 11:32:03 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
MAGICOWN = root
Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:32:52 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)
rcsid
Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 2 11:50:57 1996 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
netbsd -> openbsd
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:08 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:08 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision