219431 Commits

Author SHA1 Message Date
yamt
44f7683783 fix descriptor leaks. PR/47805
this fix was taken from FreeBSD SVN rev 199953 (Jilles Tjoelker)
    ------------------------------------------------------------------------
    r199953 | jilles | 2009-11-30 07:33:59 +0900 (Mon, 30 Nov 2009) | 16 lines

    Fix some cases where file descriptors from redirections leak to programs.

    - Redirecting fds that were not open before kept two copies of the
      redirected file.
	sh -c '{ :; } 7>/dev/null; fstat -p $$; true'
	(both fd 7 and 10 remained open)
    - File descriptors used to restore things after redirection were not
      set close-on-exec, instead they were explicitly closed before executing
      a program normally and before executing a shell procedure. The latter
      must remain but the former is replaced by close-on-exec.
	sh -c 'exec 7</; { exec fstat -p $$; } 7>/dev/null; true'
	(fd 10 remained open)

    The examples above are simpler than the testsuite because I do not want to
    use fstat or procstat in the testsuite.
2013-06-27 23:22:04 +00:00
jdf
eb2a9790dd * adjust indentation of list block
* fix capitalization
 * remove superfluous word ('The')

Patch supplied by Bug Hunting.
2013-06-27 21:55:10 +00:00
matt
350cb9bc6c Switch arm, earm, powerpc to use crtbegin.c
Use -fpie for crtbegin.
2013-06-27 21:24:39 +00:00
christos
c194fe82de close fp
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-27 21:24:08 +00:00
christos
d05665da48 free boot_code
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-27 21:23:21 +00:00
wiz
2c3c4687ae New sentence, new line. Fix typo. Remove 'i'. 2013-06-27 21:22:46 +00:00
christos
7bae9734a8 fix uninitialized variable
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-27 21:22:16 +00:00
christos
fc6be43550 don't forget to insert the io to the list
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-27 21:21:05 +00:00
christos
7159e1bc0a move assignment outside setjmp, because static analyzers are not smart enough
to know that it is impossible for id to be uninitialized.
2013-06-27 21:16:20 +00:00
christos
e8ffb7feee flip src/dst 2013-06-27 20:17:36 +00:00
christos
0234645c61 add pktinfo stuff 2013-06-27 20:14:25 +00:00
christos
9dc2582e68 add pktinfo tests 2013-06-27 20:03:36 +00:00
christos
9e823bd0f7 add a pktinfo test 2013-06-27 20:01:24 +00:00
christos
3829533e7f implement IP_PKTINFO and IP_RECVPKTINFO. 2013-06-27 19:38:16 +00:00
christos
4c8669e4d6 use sbcreatecontrol1() and m_add() instead of open-coding everything, and
getting it slightly wrong.
2013-06-27 18:54:31 +00:00
christos
931cb652f6 Introduce a more general method of sbcreatecontrol, sbcreatecontrol1 that
can take flags (M_WAITOK), and allocate large messages if needed. It also
returns the allocated pointer instead of copying the data to the passed
pointer. Implement sbcreatecontrol() using that.
2013-06-27 18:53:17 +00:00
christos
45ab582ccf - add m_add() that puts an mbuf to end of a chain
- m_append() and m_align() with their family
- remove parameters from prototypes
2013-06-27 17:47:18 +00:00
roy
5bec235cc5 Check valid lengths of RDNSS and DNSSL options when rtadvd receives RA/RS.
rtadvd doesn't actually look into the option itself, but it may do in the
future to warn about consistency.
2013-06-27 15:46:40 +00:00
martin
3e2422d481 Simplify with sy_invoke() 2013-06-27 15:27:46 +00:00
matt
5c85b99a56 Only print CBAR on those cortex with CBAR 2013-06-27 14:58:55 +00:00
christos
e2d1c3abce remove file that did not go before. 2013-06-27 14:52:58 +00:00
christos
59f914cb33 SSD cards is stupid. 2013-06-27 14:51:30 +00:00
mrg
6bc40c33c4 export ENABLE_SHARED again, for mknative. 2013-06-27 14:44:22 +00:00
mrg
42579898fb delete generated by our build files that break r/o builds. 2013-06-27 14:43:29 +00:00
martin
8d76df8028 Check for needed authentication even before redirecting. 2013-06-27 13:11:11 +00:00
martin
19574f3ec5 Fix debug output for redirects 2013-06-27 13:00:43 +00:00
wiz
bf38682790 Remove clang workaround, problem was fixed using upstream commit. 2013-06-27 12:44:58 +00:00
martin
f598b53e8a Fix copy&pasto in debug output 2013-06-27 12:20:08 +00:00
martin
2b3a4643bf After handling a request by sending a redirect, do not proceed with the normal
request handling (which would typically add error output after the end
of the redirect message).
2013-06-27 11:02:20 +00:00
martin
407204a79f Redo previous (fixing a memory leak introduced), and while there rework
virtual server support - in daemonized mode mixed virtual and "main"
server usage would alter the virtual hostname depending on order of
requests.
To fix, move the effective virtual hostname into the request structure
and leave the httpd server description static.
2013-06-27 10:01:31 +00:00
msaitoh
a8b203cde0 Move the location of wm_check_mng_mode() and wm_get_wakeup() in wm_attach().
Those functions access EEPROM, so they have to call after identifying EEPROM
access type. This modification may change the behavior of BMC(IPMI).
2013-06-27 09:57:49 +00:00
reinoud
793c315af2 Since UDF volumes are always mounted async, the simple UBC purging with
VOP_PUTPAGES() was never triggered resulting in far too much data in the UBC
that needed to be written out. This could result in instability on small
memory machines.
2013-06-27 09:38:08 +00:00
matt
2943b5ff66 Add -fPIC to compile of crtbeginS.o 2013-06-27 03:37:21 +00:00
christos
63f6ce0ea2 explain -m better 2013-06-27 03:03:16 +00:00
christos
ccedefbe54 tidy up, fix usage 2013-06-27 03:00:53 +00:00
mrg
bbbc9a7e3c use NETBSDSRCDIR to find mpc/mpfr/gmp, not NEWCONFIGDIR, the
latter which is for finding a r/w directory to write to if
we're running from a read-only tree.
2013-06-27 02:38:39 +00:00
matt
0daafbf5e0 Add earm aliases for various arm ports (ecats, hpcearm, eshark, etc.) 2013-06-27 01:02:13 +00:00
matt
c59d3d7a2c Don't force MACHINE_ARCH to be arm 2013-06-27 01:01:08 +00:00
christos
b7b444d5e5 back out previous, fix is in tsc.c 2013-06-27 00:38:18 +00:00
christos
babd098e06 detect a bad msr tsc and don't use it. 2013-06-27 00:37:34 +00:00
christos
e6c0613c4b add example for l2tp gateway. 2013-06-26 21:38:10 +00:00
christos
38d57d6181 rename to follow suit. 2013-06-26 21:36:39 +00:00
christos
c02281a083 add an L2TP Gateway example. 2013-06-26 21:33:56 +00:00
christos
e7d3ff1397 PR/47967: Jeff Rizzo: Add a probe for QEMU to disable it from claiming it
has MSR_TSC. Fixes DTRACE crashing because it returned a frequency of 0.
2013-06-26 20:52:28 +00:00
agc
6a34c4426f fix a typo 2013-06-26 20:20:36 +00:00
reinoud
591c440aa2 Add UDF as one of the filesytems to test. Might help understand why rump is
misbehaving on it.
2013-06-26 19:29:24 +00:00
matt
1b47c955dd If the MBR is a protective MBR, don't bother looking at it. 2013-06-26 18:47:26 +00:00
riz
78ae231e57 Display the load address of modules. PR bin/47951. 2013-06-26 17:55:38 +00:00
matt
b1e43fe49f Use sy_invoke 2013-06-26 17:18:52 +00:00
pooka
fdd3db309d Remove the route_info weak alias. It's unnecessary since 2011
and confused Linux ld.so, thus preventing dlopen() of librumpnet.
Reported in private email by Justin Cormack.

Also, g/c a few other stubs which are no longer necessary.
2013-06-26 17:10:23 +00:00