Commit Graph

211528 Commits

Author SHA1 Message Date
dholland 61f93db25f Rectify race condition in rm -P processing by checking that the file
we opened is the one we expected to get. Also use O_NOFOLLOW to help
avoid even opening devices, which sometimes produce side effects.

Reported by Radoslaw A. Zarzynski.
2012-06-13 07:35:37 +00:00
manu 08f6c5569f Fix memory leak on setattr 2012-06-13 01:45:56 +00:00
christos c38c69a23f check thread limit 2012-06-12 23:56:19 +00:00
bouyer 22cc6b2833 If the user process provided a bogus signal handler address, kill it
now instead of trying to jump to the bogus address.
2012-06-12 22:16:05 +00:00
jdf 3a6070abd3 Use correct macro (.Nm is only used within the NAME section, for section 3
manpages).

Patch provided by Bug Hunting.
2012-06-12 21:16:17 +00:00
jdf fbff87ca03 * decapitalize NAME section's line
* improve wording
 * make RETURN VALUES section consistent with other man pages' (e.g. exit(3) and
   abort(3)

Patch provided by Bug Hunting.
2012-06-12 21:06:43 +00:00
jdf 3b4194fe31 Capitalize sentences.
Patch provided by Bug Hunting.
2012-06-12 21:01:10 +00:00
joerg 19434947ab Fix a case where an uninitialized USB pipe could be freed in the error
path.
2012-06-12 20:25:58 +00:00
joerg b1e1b1d4c2 Replace __dead, __unused and the various printf format attributes
with versions prefixed by MAKE_ATTR_* to avoid modifying the
implementation namespace. Make sure they are available in all places
using nonints.h to fix bootstrap on Linux.
2012-06-12 19:21:50 +00:00
christos a7879b44e9 make sure that signal handlers are always initialized. 2012-06-12 19:03:26 +00:00
joerg 1849ce1af3 Prefix devname's buffer with /dev/ as ttyname is supposed to return the
full path. Reported by Dave Huang.
2012-06-12 18:17:04 +00:00
yamt 98c82cc1ae intr_find_mpmapping: comments and cosmetic. no functional changes. 2012-06-12 17:26:29 +00:00
yamt 721722497b cpu_load_pmap: disable interrupts. add a comment to explain why. PR/44995 2012-06-12 17:14:19 +00:00
rjs be206df192 Add radeon_xvmc.c, new in 6.14.4. 2012-06-12 12:26:42 +00:00
isaki f28248caf4 Allows you to disable it if makemandb=NO in rc.conf.
Thanks tsutsui@ and Yasushi Oshima.
2012-06-12 02:25:29 +00:00
christos 65fcd43bd2 cross reference getfsspecname(3) 2012-06-11 23:28:19 +00:00
wiz ec2472a392 sqlite3-3.7.13 out. 2012-06-11 21:39:49 +00:00
agc 6b981736db cosmetic change: fix two casts to be of the appropriate type 2012-06-11 21:11:40 +00:00
njoly 8d31656afc New testcase to check limits flags for ulimit builtin. 2012-06-11 18:32:59 +00:00
njoly 089201c2fd Allow thread limit queries by adding the new -r flag to ulimit. Add
the corresponding documentation in the man page.
2012-06-11 18:28:10 +00:00
tsutsui 0a449abb14 Make i915drm work on Atom N4xx/D410/D510 + GMA3150 integrated graphic devices.
Patch is taken from FreeBSD:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.

Should be pulled up to netbsd-6.
2012-06-11 16:51:04 +00:00
tsutsui f6b04c4370 - explicitly include <machine/pcb.h> for struct pcb
- consistently use
   #if NKSYMS || defined(MODULAR) || defined(DDB) || defined(KGDB)
  to check kernel symbols otherwise build fails if none of them are defined
Reported by Yasushi Oshima.
2012-06-11 16:41:26 +00:00
tsutsui 4f16d5a2d9 Explicitly include <machine/pcb.h> for struct pcb. 2012-06-11 16:27:58 +00:00
tsutsui d64da08176 Explicitly include <machine/pcb.h> for struct pcb.
Fixes build error on GENERIC + no options DDB, reported by Yasushi Oshima.

Should be pulled up to netbsd-6.
2012-06-11 16:27:08 +00:00
hannken 58d3be794f File system snapshots are no longer experimental.
Forgot to chang this man page in Nov 2011.
2012-06-11 15:25:14 +00:00
chs cc6452ecfb allow more space for modules. 2012-06-11 15:18:26 +00:00
chs 6e9ead4606 make dtrace work on amd64. 2012-06-11 15:18:05 +00:00
wiz 8e7413b140 Declare enomem __dead for clang. 2012-06-10 21:44:12 +00:00
wiz 459b76f867 Remove a __dead for an undead function (clang errors out otherwise). 2012-06-10 21:44:01 +00:00
dholland 089467b866 Fix description of -o option. Noted by Snader_LB on freenode. 2012-06-10 17:45:59 +00:00
mlelstv 5741661f64 Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.
2012-06-10 17:05:18 +00:00
christos cbd8b26f5f add libexecinfo 2012-06-10 15:04:47 +00:00
christos 2636f12679 revert previous 2012-06-10 15:02:31 +00:00
christos 4061f5ae30 PR/46576: Robert Sprowson: Shutdown doesn't disable TX/RX interrupts in
SEEQ8005 driver, plus misc white-space and 0->NULL fixes.
2012-06-10 15:00:49 +00:00
skrll 6062ea05a5 Remove unused __NEWINTR defines 2012-06-10 13:15:24 +00:00
mrg 4a00fabd03 remove a comment about usbmp. 2012-06-10 06:40:08 +00:00
mrg 560441e401 note jmcneill-usbmp has been merged. 2012-06-10 06:26:21 +00:00
mrg dc74fbbf85 merge the jmcneill-usbmp branch. many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.
2012-06-10 06:15:52 +00:00
christos e848a9e55e add libexecinfo 2012-06-10 00:25:51 +00:00
christos 3ffb571495 mention .Nx 7.0 2012-06-10 00:24:36 +00:00
njoly f273b2e5cb Consistently use major/minor for NetBSD version. 2012-06-09 23:15:13 +00:00
njoly 5b87e47d83 Consistently use major/minor for NetBSD version. 2012-06-09 22:49:18 +00:00
christos 394bbc132e PR/46571: Yui NARUSE: execinfo.h should include stddef.h 2012-06-09 21:22:17 +00:00
wiz 82200bc92c Consistenly mention columns and fields. From Bug Hunting in PR 44747. 2012-06-09 19:23:14 +00:00
wiz 59a4ab1af9 Add -b to short error messages. Fix typo. From Bug Hunting in PR 44747. 2012-06-09 19:22:47 +00:00
christos 27eca176eb since uidinfo uses sysctl now, move sysctl initialization before it. 2012-06-09 15:48:38 +00:00
tron 40d1cacf4a Postfix 2.8.11 was imported. 2012-06-09 12:39:53 +00:00
tron 03f0339393 Resolve conflicts from last import. 2012-06-09 11:32:19 +00:00
tron b26355a362 Import Postfix 2.8.11. Changes since version 2.8.8:
- The "change header" milter request could replace the wrong header. A long
  header name could match a shorter one, because a length check was done on
  the wrong string. Reported by Vladimir Vassiliev.
- Core dump when postlog emitted the "usage" message, caused by an extraneous
  null assignment. Reported by Kant (fnord.hammer).
- These releases add support to turn off the TLSv1.1 and TLSv1.2 protocols.
  Introduced with OpenSSL version 1.0.1, these protocols are known to cause
  inter-operability problems, for example with some hotmail services.
  The radical workaround is to temporarily turn off problematic protocols
  globally:

	/etc/postfix/main.cf:
	    smtp_tls_protocols = !SSLv2, !TLSv1.1, !TLSv1.2
	    smtp_tls_mandatory_protocols = !SSLv2, !TLSv1.1, !TLSv1.2

	    smtpd_tls_protocols = !SSLv2, !TLSv1.1, !TLSv1.2
	    smtpd_tls_mandatory_protocols = !SSLv2, !TLSv1.1, !TLSv1.2

  However, it may be better to temporarily turn off problematic protocols for
  broken sites only:

	/etc/postfix/main.cf:
	    smtp_tls_policy_maps = hash:/etc/postfix/tls_policy

	/etc/postfix/tls_policy:
	    example.com         may protocols=!SSLv2:!TLSv1.1:!TLSv1.2

  Notes:

  Note the use of ":" instead of comma or space. Also, note that there is NO
  space around the "=" in "protocols=".

  The smtp_tls_policy_maps lookup key must match the "next-hop" destination
  that is given to the Postfix SMTP client. If you override the next-hop
  destination with transport_maps, relayhost, sender_dependent_relayhost_maps,
  or otherwise, you need to specify the same destination for the
  smtp_tls_policy_maps lookup key.
- OpenSSL related (all supported Postfix versions).
  Some people have reported program crashes when the OpenSSL library was
  updated while Postfix was accessing the Postfix TLS session cache. To avoid
  this, the Postfix TLS session cache ID now includes the OpenSSL library
  version number. This cache ID is not shared via the network.
- The OpenSSL workaround introduced with the previous stable and legacy
  releases did not compile with older gcc compilers. These compilers can't
  handle #ifdef inside a macro invocation (NOT: definition).
- To avoid repeated warnings from postscreen(8) with "connect to
  private/dnsblog service: Connection refused" on FreeBSD, the dnsblog(8)
  daemon now uses the single_server program driver instead of the multi_server
  driver. This one-line code change has no performance impact for other
  systems, and eliminates a high-frequency accept() race on a shared socket
  that appears to cause trouble on FreeBSD. The same single_server program
  driver has proven itself for many years in smtpd(8). Problem reported by
  Sahil Tandon.
- Laptop-friendly support (all supported Postfix versions). A little-known
  secret is that Postfix has always had support to avoid unnecessary disk
  spin-up for MTIME updates, by doing s/fifo/unix/ in master.cf (this is
  currently not supported on Solaris systems). However, two minor fixes are
  needed to make this bullet-proof.
- In laptop-friendly mode, the "postqueue -f" and "sendmail -q" commands did
  not wait until their requests had reached the pickup and qmgr servers before
  closing their UNIX-domain request sockets.
- In laptop-friendly mode, the unused postkick command waited for more than
  a minute because the event_drain() function was comparing bitmasks
  incorrectly on systems with kqueue(2), epoll(2) or /dev/poll support.
2012-06-09 11:26:39 +00:00
martin 4988efdfdc Add missing terminfo 2012-06-09 09:22:21 +00:00