Commit Graph

1841 Commits

Author SHA1 Message Date
apb 5f87cb97b1 If a module doesn't implement a primitive, don't just ignore it;
set r = PAM_SYSTEM_ERR and let later code check the flags
before deciding whether the error may be ignored.

Also count the number of successes, and if nothing is explicitly
successful then treat it as a failure.  This replaces the previous
check for chain == NULL.

Reviewed by christos, mrg
2011-10-08 20:40:06 +00:00
joerg 9184fcb3a1 Simplify. 2011-10-07 10:42:54 +00:00
jdc 72b200e799 Work around PR#43839, by calling resizeterm() on SIGWINCH. 2011-09-24 18:57:46 +00:00
he 65217c2910 Also eliminate now-no-longer-used local variable. 2011-09-22 16:08:49 +00:00
christos 3670fb8d46 Eliminate unchecked malloc (Maksymilian Arciemowicz) 2011-09-22 12:43:09 +00:00
christos 5b4a37ed53 check the result of malloc (Maksymilian Arciemowicz) 2011-09-22 12:38:33 +00:00
joerg 3c101252bb Use __dead 2011-09-16 16:13:41 +00:00
joerg 9eba1e423c Use __dead 2011-08-29 20:41:06 +00:00
joerg a631748810 Sprinkle NORETURN. 2011-08-29 13:51:38 +00:00
christos 1598a84d98 fix non-literal format string 2011-08-25 16:51:48 +00:00
christos 112264be37 fix raw string formats 2011-08-17 12:56:55 +00:00
christos 50b09be45a fix gcc-4.5 cast warning 2011-08-17 09:55:41 +00:00
christos b3d08e40dc Instead of printing the raw suspect value instead of the name (!?!?), print the
name and the suspect value vis encoded.
2011-08-17 08:06:38 +00:00
christos e2f91adb83 gcc-4.5 fixes 2011-08-16 16:36:38 +00:00
christos 4dff6c909f Fix CVS-2011-2748, malformed packets can cause server to crash causing a DoS. 2011-08-15 21:12:43 +00:00
christos c6d3b3616a fix gcc45 warnings 2011-08-14 12:35:35 +00:00
mrg 3cdf6fedc7 initialise from_cs[1] instead of from_cs[0] twice. from GCC 4.5.3. 2011-06-22 03:57:46 +00:00
mrg 66f169a030 don't write "(u_char) NULL". 2011-06-22 03:57:20 +00:00
spz 9d87d5aa75 clean up after my recent import for netbsd-5; these files don't belong
in -current
2011-06-05 17:15:40 +00:00
spz 8f42c2dddc Import bind 9.7.3-P1 2011-06-03 19:45:13 +00:00
joerg 9f5d29dc35 Use portable macros 2011-05-24 12:18:03 +00:00
christos 3b8a1d51ed CVE-2011-0997 dhclient: insufficient sanitization of certain DHCP
response values. Apply patch by hand from the 3.1-ESV-R1 release.
2011-04-06 20:24:16 +00:00
tnozaki 80356df9b8 1. fix PR/44455, nonprintable character doesn't show hex-visual
under big endian.
2. ":set octal" with nonprintable character causes nbwcurses move error.
3. moving (big)words by wW/eE/bB can't handle non-ascii characters.
4. toggle uppercase/lowercase by ~ can't handle non-ascii characters.
5. don't feed CHAR_T(=wchar_t) to is* function directly.
   is* funcs with over UCHAR_MAX value may cause undefined behavior.
   some ctype implementation(such as FreeBSD) return unexpected
   result(same result as isw* func).
6. using non-ascii digit character with count/line number of ex/vi
   command may causes unexpeced result.
2011-03-21 14:53:02 +00:00
plunky 6e14638c94 format string needs end of statement ; for previous commit 2011-02-24 18:33:06 +00:00
christos 0040aced9a define the format as a constant so that we don't break if sprintf is a macro.
XXX: make it so that sprintf is not a macro.
2011-02-24 14:33:23 +00:00
rmind 7d1dd86a47 - Fix man pages list for MKNPF=no case. Based on a patch from Scott Ellis.
- Fix build with MKNPF=yes and MKIPFILTER=no as well; close PR/44512.
2011-02-10 14:04:29 +00:00
rmind 07ac07d35f NPF checkpoint:
- Add libnpf(3) - a library to control NPF (configuration, ruleset, etc).
- Add NPF support for ftp-proxy(8).
- Add rc.d script for NPF.
- Convert npfctl(8) to use libnpf(3) and thus make it less depressive.
  Note: next clean-up step should be a parser, once dholland@ will finish it.
- Add more documentation.
- Various fixes.
2011-02-02 02:20:24 +00:00
wiz bdc7bbc56f Fix typo reported in PR 44429 by Ryo HAYASAKA. 2011-01-21 09:15:20 +00:00
christos f4dfcf5469 warns=4 2010-12-13 01:45:38 +00:00
christos bbf28506fe things moved to external. 2010-12-11 23:36:08 +00:00
christos c0b8ed591c Adjust to the new libpcap prototypes for compatibility. 2010-12-05 05:20:28 +00:00
schnoebe 041d7f637f bin/44088
Change the initialization state of gtagsmode to 0, (unset).

This brings about least astonishment for users, permittings tags
functionality to work as expected.
2010-11-14 20:53:54 +00:00
christos cefc0995de PR/44006: Ralph G: vi: CTRL-A does not handle end-of-word correctly
End-of-word was not included in search regexp leading to false positives.
http://patches.ubuntu.com/by-release/extracted/debian/n/nvi/1.81.6-7/15search_word.dpatch
2010-10-28 18:12:47 +00:00
christos 8fb564818f avoid integer overflow that can lead to buffer overflow 2010-09-20 19:39:20 +00:00
drochner ebb3b30048 minimal ansification/constification 2010-09-12 16:03:39 +00:00
wiz eb06495b27 refering -> referring, per PR 43814. 2010-08-30 10:41:54 +00:00
christos b318098f2e bye old wpa 2010-08-26 14:59:01 +00:00
christos bbd9165a6e Apply changes from 2.4.5. Supposedly fixes some 3G issues. 2010-08-07 20:38:13 +00:00
dholland 810cb26dbe Don't attempt to store bitmasks in a variable of type 'bool'.
From Shuichiro URATA in PR 42390. Should be pulled up to -5.
2010-07-31 21:21:17 +00:00
jruoho 811c1709b9 Fix a typo and comment out a dead FTP link.
From "bughunting" in PR misc/40107.
2010-07-06 17:42:32 +00:00
plunky 08432b7b14 handle STDC and GNUC inline semantic differences by providing and
using an EXTERN_INLINE definition for functions that are defined as
inline but provide an externally callable reference.

(these are externally called in ipftest)
2010-06-01 08:53:20 +00:00
joerg 2885f987a5 Reorder sections. 2010-05-14 16:43:34 +00:00
joerg c6f74bb52a Programs exit, they don't return values. 2010-05-14 16:43:07 +00:00
wiz 1337439409 Add missing minus to fix build of HTML page. 2010-05-14 12:02:23 +00:00
wiz 58e9b016de Convert to mdoc. Reorder content to sort flags and sections. 2010-05-14 09:16:17 +00:00
joerg 1a922c0c77 Drop undefined macro .PU. Drop unnecessary .ll. Fix .TH to use upper
case.
2010-05-14 01:52:48 +00:00
tnozaki 50eb6aadde cast isblank(3)'s argument to unsigned char. 2010-05-13 17:52:11 +00:00
mbalmer f782664b92 Language fix: upto date -> up to date. 2010-05-11 18:27:04 +00:00
darrenr 91cf3dd7bf ip_fil_compat.c is another file that needs to be both in src/dist/ipf and
also in src/sys/dist/ipf/netinet
2010-04-17 22:05:53 +00:00
darrenr 46fa5e0711 Commit IPFilter 4.1.34 to HEAD 2010-04-17 21:00:08 +00:00