Age | Commit message (Collapse) | Author |
|
These surrogates are not valid Unicode codepoints,
so treat them just like any other undefined character escapes:
Warn about them and do not produce output.
Issue noticed while talking to stsp@, semarie@, and bentley@.
|
|
* Use ohash(3) rather than a hand-rolled hash table.
* Make the character table static in the chars.c module:
There is no need to pass a pointer around, we most certainly
never want to use two different character tables concurrently.
* No need to keep the characters in a separate file chars.in;
that merely encourages downstream porters to mess with them.
* Sort the characters to agree with the mandoc_chars(7) manual page.
* Specify Unicode codepoints in hex, not decimal (that's the detail
that originally triggered this patch).
No functional change, minus 100 LOC, and i don't see a performance change.
|
|
deletion.
|
|
file to the new output file. In preparation for pledge(2).
Suggested by and OK millert@
|
|
the same meaning in our diff ed-context.
As a bonus, our ed-diff output can be processed by GNU patch now, too.
okay millert@
|
|
input files are specified through --files0-from.
OK millert@
|
|
keys are noted before pubkey authentication starts. ok dtucker@
|
|
callback functions into one common place, preparing for the use of
ohash for some additional purposes. No functional change.
|
|
|
|
and adjust variable types to get correct behavior
ok beck@ millert@
|
|
of stat()+utimes(). Prefer clock_gettime() over gettimeofday() to avoid
timeval->timespec conversion
ok millert@
|
|
ok deraadt@
|
|
blocksize; ok dtucker@
|
|
Always needed: stdio rpath (to open multiple files and for .so)
In addition after starting the pager: tmppath (to clean up the temp files)
In addition before starting the pager: proc exec
Looks good to deraadt@.
|
|
Always needed: stdio rpath.
In addition when writing to an existing db: wpath cpath fattr.
In addition when creating a new db: proc exec.
Based on work by and OK bentley@, "get moving" deraadt@.
|
|
found by Svyatoslav Mishyn <juef at openmailbox dot org>
with the clang static analyzer.
|
|
found by Svyatoslav Mishyn <juef at openmailbox dot org> with cppcheck.
|
|
fixing a pasto introduced in the previous commit;
found by Svyatoslav Mishyn <juef at openmailbox dot org> with cppcheck.
|
|
|
|
needed here. ok deraadt@
|
|
buffer. Previously, when refreshing the buffer the files marked for
deletion would be lost.
Since the relationship between the files that have been marked for
deletion and those that exist on disk is volatile, I have chosen to
implement the discovery of marked files during the refresh function as
opposed to maintaining a dired buffer specific list.
|
|
reliability has improved, and other repair methods are easier from
bsd.rd or whatnot. As a static binary ftp has limited ASLR, yet it has
7 libraries... Making it non-static means the ASLR picture improves.
Let's see who moans first.
ok miod daniel
|
|
In UTF-8 output, that renders as ASCII HYPHEN-MINUS (U+002D)
rather than HYPHEN (U+2010), which looks better and matches groff.
In ASCII output, it makes no difference.
Suggested by naddy@.
|
|
|
|
route lookups won't be needed; so expand the pledge setup to handle
3 codepaths.
from theo buehler
|
|
and use the one in the base install, but have their own copy.
ok millert sthen miod daniel
|
|
|
|
from pgoyette (netbsd -r1.26)
|
|
|
|
the actual order of use is tty, rpath, stdio or fattr)
|
|
Fixes a segfault reported by bentley@.
While here, do some style cleanup in the same function.
|
|
ASCII_NBRSP has to be rendered as " ", not "-".
|
|
that were right between two adjacent case statement. Keep only
those 24 where the first case actually executes some code before
falling through to the next case.
|
|
|
|
okay deraadt@
|
|
They don't work, they break other tags in weird ways, and even
if they could be made to work, they would be mostly useless.
Issue reported by naddy@, thanks.
|
|
makes no promises about compatibility nor the lack of compatibility.
suggestion & diff from micheal reed
|
|
That's more readable and less error-prone than fumbling around
with argv[0], fprintf(3), strerror(3), perror(3), and exit(3).
It also shortens the code by 50 lines.
It's a bad idea to boycott good interfaces merely because standards
committees ignore them. Instead, it's the job of the portable
distribution to provide compatibility modules for archaic systems
(like commercial Solaris) that still don't have them. Actually,
the compat code for the portable distribution already exists and
will be committed right after this.
|
|
the newfile() function used for create files open files in "w+"
(O_RDWR), and may occasionally do reading on the file (function
toomuch()).
ok deraadt@
|
|
okay millert@
|
|
gcr-3,gcr-base-3
|
|
arguments using kvm_getargs, after the pledge() has been made. someone
brave should refactor this, hoisting the argument fetching to between
kvm_getprocs() and pledge() - storing the argument data as neccessary.
the current situation is also a race -- it fetches the data twice.
|
|
sizeof(struct sockaddr_un), so do the simple, portable thing
ok beck@ deraadt@
|
|
openssl(1) has two mechanisms for operating: either a single execution
of one command (looking at argv[0] or argv[1]) or as an interactive
session than may execute any number of commands.
We already have a top level pledge that should cover all commands
and that's what interactive mode must continue using. However, we can
tighten up the pledges when only executing one command.
This is an initial stab at support and may contain regressions. Most
commands only need "stdio rpath wpath cpath". The pledges could be
further restricted by evaluating the situation after parsing options.
deraadt@ and beck@ are roughly fine with this approach.
|
|
|
|
These should have been "stdio getpw" before, but they worked for non-YP
environments. With YP, it won't work without "getpw".
Reported by semarie@ and confirmed as a problem by miod@.
ok deraadt@
|
|
ok doug
|
|
does stdio, and it does a raw execve(). It is so obvious. It gets
only _exit(2), kbind(2), and 46 system calls -- over half of which
are deeply gutted in their functionality to only serve narrow libc
needs for "stdio (includes malloc)". the other 161 system calls kill it.
|
|
rpath is to access /etc/rpc, and inet to talk to portmap & local world.
ok beck
|
|
ok doug
|