Commit Graph

12982 Commits

Author SHA1 Message Date
jnemeth
3980f190ce typo 2015-11-06 12:49:06 +00:00
wiz
f46449d46b Sort options in SYNOPSIS.
Order is: 0123.9AaBbCc...Zz;
options without arguments in a block first, then the ones with arguments.
2015-11-05 14:02:07 +00:00
ozaki-r
a0fb6b682b Add missing options to SYNOPSIS and sort 2015-11-05 09:28:30 +00:00
joerg
772e6dc22c ' != " so make the condition actually work. 2015-11-02 12:06:33 +00:00
shm
c4764e65c8 - Added error checks for initgroups(3) and setgroups(2).
- Reorder functions in privilege regain - setgroups(2) should be called after
  seteuid(2).

OK christos@
2015-10-29 11:31:52 +00:00
shm
93eb731454 Added missing sa_mask initialization (CID 979636)
OK kamil@ mrg@
2015-10-28 08:15:53 +00:00
shm
39d8d23068 Fixed off-by-one in decode_ss (CID 977426)
OK kamil@
2015-10-28 07:27:24 +00:00
shm
805afefc0d Added namelen initialization in getpeername(3) call (CID 979631)
OK kamil@
2015-10-27 14:53:00 +00:00
shm
b1dc5cb72e Fixed memory leak (CID 978341)
OK kamil@
2015-10-27 14:47:45 +00:00
mrg
60c6cf919b port across the change from freebsd rev 290024:
In gunzip(1), treat trailing garbage as a warning and not an error.  This
allows scripts to distinguish it between real fatal errors, for instance a
CRC mismatch.

Update manual page for the behavior change.

PR:		bin/203873
Submitted by:	Eugene Grosbein <eugen grosbein net>
MFC after:	2 weeks
2015-10-27 07:36:18 +00:00
sjg
b690002e9b PrintOnError: fflush stdout before running .ERROR
produces more consistent results in unit-tests.
2015-10-25 05:24:44 +00:00
christos
354d41acbc simplify 2015-10-22 00:29:58 +00:00
sjg
80c2cdd094 Ensure emsg initialized 2015-10-20 21:30:57 +00:00
christos
96e2a4cea0 more descriptive errors 2015-10-14 18:31:52 +00:00
christos
29160715bc the next symbol should be a type. 2015-10-13 20:49:39 +00:00
christos
14356dd961 handle anonymous struct/union members. 2015-10-13 20:25:21 +00:00
christos
17f4a693be more descriptive aborts 2015-10-13 16:09:33 +00:00
sjg
19a6f2c62e Add unit-test for discarded :? 2015-10-12 17:09:29 +00:00
sjg
5a3dc2452c The conditional expressions used with ':?' can be expensive
eg. exists() does stat(2).
If 'wantit' is FALSE, we are going to discard everything anyway,
so skip evaluating the conditional and expanding either lhs or rhs.
2015-10-12 16:48:13 +00:00
pgoyette
b4d63f0a4b Fix typo - Bahamas starts with a 'B' not with a 'G' 2015-10-11 22:08:46 +00:00
sjg
c7f1b3e52d Avoid echo -n in unit-tests 2015-10-11 06:32:15 +00:00
sjg
df0424202d Add Boolean wantit to Var_Parse and Var_Subst
wantit will be FALSE when we are just consuming to discard
in which case we skip "expensive" things like Cmd_Exec.

Reviewed by: christos
2015-10-11 04:51:24 +00:00
dholland
1fb0cf16c7 Don't assume HAVE_POSIX_SPAWN when building a host prog. From Joachim
Kuebart in PR 50301. needs pullup-7
2015-10-10 22:54:03 +00:00
sjg
53b398eca4 Do not hard-code ingnoring of makeDependfile 2015-10-10 03:58:59 +00:00
christos
472bcd2198 PR/50322: Timo Buhrmester: tail -F <file> misbehaves with stdin closed
Compare fp with stdin not fileno(fp) with STDIN_FILENO, because if tail
is called with 0 closed, then we are not going to be setting event filters
for the file because we'll erroneously think it is stdin.
2015-10-09 17:51:26 +00:00
jnemeth
1b254ad09b note the release of NetBSD 7.0 2015-10-09 00:09:52 +00:00
christos
ebf0d565d5 don't check for NULL before free() (Tilman Sauerbeck) 2015-10-06 17:36:25 +00:00
christos
f05010c404 - PR/50291: Fix memory leak
- estrdup/emalloc
- use EXIT_FAILURE instead of 1
2015-09-29 14:27:00 +00:00
christos
20c3ea3d63 Kill sys/modctl.h which we don't need. 2015-09-27 03:37:16 +00:00
christos
c4bba3a5cb Put -Isys after the ioctl Makefile has a chance to add other paths first. 2015-09-26 13:31:27 +00:00
christos
f72496b8cd Add dtrace ioctls 2015-09-26 03:31:11 +00:00
mrg
e03a4ba241 add "-R <roundbeats>" option, to round beat counts to be aligned to
<roundbeats>, which defaults to 1.
2015-09-23 05:31:01 +00:00
jnemeth
f533a65c60 Adjust dates for floating holidays. Use 2015 for things happening from
mid-October onwards, and 2016 for things happening earlier.
2015-09-23 05:21:00 +00:00
pooka
bc0dc0b26e Add more compat defs for code compiled for !NetBSD targets.
At least GNU Hurd lacks MAXHOSTNAMELEN/MAXPATHLEN/PATH_MAX, so make sure
those have some arbitrary semi-sane values.

from Robert Millan in PR misc/50166, with some modifications from myself
2015-09-21 21:50:16 +00:00
kamil
21207296f6 Prefer error messages resolved from errno over handwritten ones. 2015-09-20 16:57:13 +00:00
kamil
ca8a5c231b Correct #ifdef/#endif header file guards generator for files with names
other than alphanumerical.

For example, for a file named config-subscriber.x we were generating a
symbol '_CONFIG-SUBSCRIBER_H'.

Since now all non alphanumerical characters will be converted to '_' and we
will prevent from generating symbols starting with "__", what's reserved
for the internal compiler code parsers and generators.
2015-09-20 16:39:04 +00:00
kamil
facb255330 Correct newstyle code generation
For newstyle we used to generate oldstyle code. This bug has been fixed in
FreeBSD on 13 Dec 1995 by wpaul.

15a1e09c3d

Reviewed by <christos>, <pgoyette>
2015-09-20 15:52:11 +00:00
kamil
29aa8e74c1 Fix NULL pointer dereference
After the last function improvements there is invalid plist dereference
at the beginning of the second for () external loop. Move the proper check
inside the internal secound for () loop, after plist reinitialization.
2015-09-20 15:45:07 +00:00
martin
48059d8422 Add tera- and peta-bytes. 2015-09-20 15:09:06 +00:00
mrg
5f8222cdb9 query the window size and use it instead of assuming 24 lines.
now the header isn't re-printed a lot of times in tall windows.
2015-09-20 00:30:04 +00:00
joerg
f66e764c57 Workaround const issues of SSL_set_tlsext_host_name. 2015-09-16 15:32:53 +00:00
wiz
c39756ad10 servername cannot be NULL here.
Noted by joerg@.
2015-09-12 20:23:27 +00:00
wiz
7a5da4c401 Bump version for SNI support. 2015-09-12 20:18:52 +00:00
wiz
f9b7d2341e Add Server Name Indication (SNI) support for https.
Needed for e.g. some github URLs.
2015-09-12 19:38:42 +00:00
joerg
2bb600f982 Negating an integer and comparing it to 1 is a fancy way of checking for
0, which in this case would be DEVI_ORPHAN. That clearly can't be the
intention here, so switch to using != as operation without negation
instead.
2015-09-12 19:11:13 +00:00
uebayasi
ba0b12db31 Libraries should be built in sub-make. libkern is polluting .PATH too much. 2015-09-11 02:26:22 +00:00
sjg
0173eb921e Output Entering/Leaving messages for objdir when != srcdir and -w flag
This helps ensure Emacs can find source of error.

Reviewed by: christos
2015-09-10 17:15:11 +00:00
jnemeth
7c8eb9ef85 Pretty difficult for a TV show (Star Trek) to have a first airing
on two different dates.  Dump the erroneous one.
2015-09-08 11:07:37 +00:00
uebayasi
6639db6cc2 About ${CTFCONVERT}. 2015-09-08 05:48:07 +00:00
uebayasi
fe281df765 ${MD_OBJS} and friends. 2015-09-08 02:23:34 +00:00