tnozaki
0556aba958
use ARG_CHAR_T instead of CHAR_T for integer promotion.
2011-11-16 14:24:43 +00:00
tnozaki
dcbcd554a0
nvi cannot display international character(west european accented chars).
...
reported by Ian D. Leroux at current-users, thanks a lot!
2011-11-14 13:29:07 +00:00
wiz
f4eb12076c
add dircategory/direntry for vi, so texinfo stops complaining
2011-11-13 19:53:53 +00:00
drochner
8e6899dea3
Don't allow '/' characters in the "service" argument to pam_start()
...
The "service" is blindly appended to config directories ("/etc/pam.d/"),
and if a user can control the "service" it can get PAM to read config
files from any location.
This is not a problem with most software because the "service" is
usually a constant string. The check protects 3rd party software
from being abused.
(CVE-2011-4122)
2011-11-09 20:26:41 +00:00
mbalmer
24e4901256
There is no doubt whether whether should have a 'h' after the 'w'.
2011-10-17 16:35:21 +00:00
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
darrenr
abd0900a99
Import IPFilter 4.1.34 into NetBSD
...
4.1.34 - Release 11 March 2010
2964907 uninitialised use compile error
2959506 ipfstat does not display rules with compat
2949139 FR_T_BUILTIN masked out incorrectly
2937422
packets filtered with pools should not be cached
2935529 use of rules with tags leads to deadlock
2917501 whitespace cleanup required
2881514 in/out object functions not wired for compatibility
2841771 ipf/ippool rule maintenace bugs: memory leak, ref-counter bug
2839698 H.323 proxy does not clear fin_state/fin_nat
2010-04-17 20:44:16 +00:00
wiz
19e1a3b574
Bump date for new CAVEATS.
2010-04-12 21:28:23 +00:00
ahoka
0bb59a3f04
mention pfsync not working as a kernel module
2010-04-12 14:26:11 +00:00
plunky
5ae9f3630e
use static __inline__ as per latest upstream, fixes problem with
...
C99 vs GNUC semantics of extern __inline__
2010-04-10 08:33:35 +00:00
christos
f1b28409da
ctime can return NULL
2010-04-04 01:36:03 +00:00
pgoyette
e11dcd85ce
Insert missing )
2010-04-03 02:08:30 +00:00
christos
a41de9d317
check ctime.
2010-04-02 21:37:22 +00:00
christos
f7cd580182
check ctime return
2010-04-02 21:33:14 +00:00
christos
23b25caf0c
handle ctime returning NULL.
2010-04-02 15:40:14 +00:00
christos
d80643a1f0
remove bogus cast that hides bugs if tv_sec is non POSIX compliant.
2010-04-02 15:38:05 +00:00
joerg
d87aa4973c
Fix \\ encoding
2010-03-30 14:26:16 +00:00
mrg
8ffc8574e6
fix some powerpc64 build issues.
2010-03-22 05:08:54 +00:00
wiz
198f608b4a
Bump date for previous.
2010-03-20 11:24:29 +00:00
joerg
1b51c5fb09
Apply the equivalent of r426 and r427 from openpam repository:
...
Fix doc: pam_strerror() ignores pamh.
Portability tip.
2010-03-19 18:26:14 +00:00
joerg
bf23d3125d
Apply r432 from openpam repository:
...
pam_end() already contains a NULL check, and it is not unreasonable to
call it with a NULL pamh in a cleanup / error-handling situation. Remove
OPENPAM_NONNULL, which may cause gcc to optimize away the NULL check.
2010-03-19 18:16:14 +00:00
joerg
bfbe4c3572
Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
...
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
wiz
8f657e21de
Fix typo (specifed -> specified).
2010-02-18 14:00:39 +00:00
snj
c4acb3fa95
Fix a thinko: the DHCP _client_ is doing the requesting.
...
Reported by Anonymous in PR misc/39162.
2010-02-17 01:17:36 +00:00
drochner
4aab8ad6b5
sync with rev. 1.5 of sys/dist/pf/net/if_pflog.h (which was before
...
the 5.x branch), to make filter expressions in pflog dumps work again,
from Lucio Albornoz per PR bin/42780
(pullup candidate)
2010-02-12 21:16:56 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
drochner
ae6fdb5ce4
rather than adding braces in the code, define the offending macro
...
to "(void)0". This is what similar code in bind9 (up to 9.5) does.
(native NetBSD code usually does "do { } while (/* CONSTCOND */ 0)"
in this case)
Anyway, I've checked the code, didn't find ambiguities due to
the empty statements, so the whole thing is harmless.
2010-01-26 19:11:00 +00:00
drochner
7393fe922a
fix some cases where the EREPORT macro defined to null (as in the NetBSD
...
build) could change the behaviour of the code in unexpected ways
2010-01-25 20:33:57 +00:00
wiz
bfc69b9f22
Add missing parentheses in ifdef(OLD_LEXER). Found by cppcheck.
2010-01-17 22:42:36 +00:00
mlelstv
c96a848326
Use wide char versions of tolower/toupper/islower/isupper where
...
appropriate. Fixes ~ command on big-endian architectures.
2009-12-23 12:44:21 +00:00
mbalmer
8a65aabe5b
Fix typo in command output.
2009-12-23 09:13:21 +00:00
ahoka
67bcc5b200
Remove the notice about pfsync not being supported, as we have it now.
2009-12-19 14:05:53 +00:00
kardel
142d831562
Merge ntp 4.2.4p8
2009-12-08 21:52:05 +00:00
kardel
8d09e35dad
Import ntp 4.2.4p8
2009-12-08 20:41:03 +00:00
martti
1a30996c87
Removed obsolete files.
2009-12-02 15:21:37 +00:00
martti
495b1f79b1
Initial version.
2009-12-02 15:07:09 +00:00
martti
77ad51d8d2
Initial version.
2009-12-01 06:27:57 +00:00
tnozaki
b95326704e
don't use pathname directly as msgq()'s first argument of format string.
2009-11-24 13:12:01 +00:00
christos
052751eb98
Better fix for PR/42320 by Takehiko NOZAKI.
2009-11-21 17:57:09 +00:00
christos
0e17d27172
PR/42320: Alexander Nasonov: According to:
...
http://www.opengroup.org/onlinepubs/7990989775/xcu/awk.html
the LC_NUMERIC decimal point recognized is always period. Make it so.
2009-11-15 21:56:06 +00:00
dsl
b87a655a0d
Fix all formats for 64bit builds
2009-11-15 18:43:28 +00:00
dsl
08ad4f398f
Need %zu for size_t
2009-11-15 18:23:08 +00:00
christos
55e651517c
one more printf like function, and fix the lossage.
2009-11-14 23:40:11 +00:00
christos
1070653ee5
Add a gcc printf attribute to the printf functions and fix the lossage caught.
2009-11-14 23:31:37 +00:00
tnozaki
6114d6b7fd
fix format string bug, filename may contain % character, don't use it as format string.
2009-11-14 20:01:20 +00:00
snj
9251f9d10e
Drop 3rd and 4th clauses, as the copyright holder (Michael Shalayeff) did
...
in OpenBSD revision 1.5.
2009-11-03 01:13:38 +00:00
joerg
68825f5128
Fix markup. Fix backslashes to surive roff.
2009-11-02 00:40:23 +00:00
dsl
ba3675f1ae
Fix regexp on LP64 systems.
...
By the time 'states1' was expanded, it became 'char *' so the code tried
to put 64 bits into an int!
Fixed PR/41924
2009-10-31 20:11:53 +00:00
dsl
f4f40b1fe1
Save command in :w !<command> for later :w !!
...
Fixes PR/8169
2009-10-31 14:30:55 +00:00
christos
2853bbf4b7
use %option instead of #define YY_NO_...
2009-10-29 14:49:02 +00:00
joerg
de3dbb6818
Garbage collect left-overs, iscsi moved to src/external/bsd/iscsi.
2009-10-24 20:07:48 +00:00