Commit graph

25 commits

Author SHA1 Message Date
Baptiste Daroussin 3ba0c99044 Revert capsicum support
In some corner case VFS lookup is not working and I do not have time to debug
it for now.
2016-09-19 06:39:11 +00:00
Enji Cooper 720ca50063 Fix typo introduced in r305949 with the stable/10 bootstrapping logic
The header is sys/capability.h, not sys/capabilities.h

X-MFC with:	r305949
Pointyhat to:	bapt
Reported by:	allanjude, Jenkins
Sponsored by: 	Dell EMC Isilon
2016-09-19 03:02:43 +00:00
Baptiste Daroussin e645c6addb Simplify the fix for bootstrap tools
building head is not supported from prior to stable/10 where sys/capsicum.h was
named sys/capabilities.h

Reported by:	kib
2016-09-18 19:16:48 +00:00
Baptiste Daroussin 8197e93d39 Fix building as bootstrap tools on pre-capsicum.h systems 2016-09-18 18:49:18 +00:00
Baptiste Daroussin 160af93197 Better error checking
if getcwd fails: just ignore it and do not try to adding to the list of possible
path where to find the files.

if fdopen fails, warn and return NULL the rest of the code knows how to deal
with it

Reported by:	oshogbo
2016-09-18 18:03:06 +00:00
Baptiste Daroussin b2c71bcefc style(9) fix
Reported by:	oshogbo
2016-09-18 17:56:14 +00:00
Baptiste Daroussin 224d9e3ed2 Capsicum-ize soelim(1).
As a trick to be able to access all files passed in arguments (readonly) within
the sandbox we first open the root directory, then consider all files as
relative to this file descriptor.

This might be improved once casper add supports for filesystem.

MFC after:	1 month
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D7936
2016-09-18 16:25:41 +00:00
Baptiste Daroussin a43d43d574 Remove usage of _WITH_GETLINE from usr.bin 2016-07-30 01:07:47 +00:00
Baptiste Daroussin b704d1f289 add an include on sys/types.h because we do explicitly use size_t
remove unused stdbool.h

Suggested by:	schwarze at OpenBSD
2015-05-21 08:26:24 +00:00
Baptiste Daroussin 46cc634986 Use the POSIX PATH_MAX macro from limits.h instead of non standard MAXPATHLEN
Submitted by:	schwarze at OpenBSD
2015-05-21 08:23:45 +00:00
Baptiste Daroussin 0330f102a0 sort headers 2015-05-21 08:20:42 +00:00
Baptiste Daroussin 2b30fb2639 Parse filename until first space then print the rest of the line after file
inclusion

This is the same behaviour of heirloom's soelim
2015-05-04 18:20:31 +00:00
Baptiste Daroussin b4a0618c44 Improve compatibility groff's soelim
While here implement -C from GNU groff

Reported by:	delphij
2015-05-01 23:54:09 +00:00
Xin LI 6f32f49c02 Correct - handling.
Reported by:	pkg-fallout
X-MFC-with:	r282318
2015-05-01 22:43:26 +00:00
Baptiste Daroussin 363da13804 Replace groff's soelim by soeliminate(1) renamed soelim(1) 2015-05-01 20:08:25 +00:00
Ruslan Ermilov 6713c83ccc We use modernized version of soelim(1) shipped with Groff. 2003-06-23 12:03:22 +00:00
Greg Lehey 961a3727e7 Output .lf directives. 2002-10-30 03:24:16 +00:00
David Malone f4ac32def2 ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5
2002-09-04 23:29:10 +00:00
Warner Losh 3f330d7d1a remove __P 2002-03-22 01:42:45 +00:00
David Malone 45af1a4cbd Warns cleanups. 2001-12-03 21:27:45 +00:00
Dima Dorfman 7a19d1bbb9 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Kris Kennaway b7ffba17f8 Don't call warn() with no format string. 2000-07-10 09:18:19 +00:00
Peter Wemm c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Philippe Charnier d6c7156e61 Use err(3). Add prototype. 1997-08-11 07:29:17 +00:00
Rodney W. Grimes 9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00