10138 Commits

Author SHA1 Message Date
rafan
428444e563 MFC ctype(3) fix for UTF-8 locale. See original commit log for details.
PR:		116363
Reported by:	Petr Hroudny <petr.hroudny at gmail.com>
Patched by:	ache
Reviewed by:	i18n@
Approved by:	re (kensmith)
OK-ed by:	portmgr
2007-10-24 14:32:33 +00:00
nyan
abb9fc692b MFC: Optimize for size on pc98. 2007-10-24 11:50:07 +00:00
kientzle
04748f6a7c MFC: archive_write_set_format_cpio.c 1.12
MFC: archive_write_set_format_cpio_newc.c 1.2

Non-regular files should have zero-length bodies.  libarchive
flags this to clients by updating the entry description when
it writes the header.
2007-10-19 03:50:48 +00:00
kientzle
984f128033 MFC 1.15: Return EOF immediately for non-regular files, don't
return an empty block first.  In particular, this fixes a bogus
warning from bsdtar when restoring directories from ZIP archives.

Also, correct the return values at EOF to include the correct
offset.
2007-10-18 05:19:44 +00:00
scf
06a2eeacf0 MFC:
Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) man
page links to fts(3).

    src/lib/libc/gen/Makefile.inc: rev 1.127 -> 1.128

Approved by:	wes
2007-10-06 03:15:15 +00:00
des
677443f91f MFC: (1.6) childerr needs to be volatile.
PR:		bin/85830
2007-09-28 07:04:35 +00:00
des
e05a1478d5 MFC: Synch with HEAD. 2007-09-28 06:35:14 +00:00
des
8697e3fed7 MFC: (1.5) use sprintf() rather than (unportable) strlcpy().
Also bobbit some unused variables.
2007-09-28 06:34:22 +00:00
jinmei
a5dfa0a1a7 MFC:
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
lib/libc/net/getaddrinfo.c:	1.86
2007-09-28 06:23:03 +00:00
kientzle
828873a7fe MFC spelling correction. 2007-09-27 03:47:26 +00:00
kientzle
77ebdb43f5 MFC 1.17: Make return values from archive_write_data()
consistent whether you're writing to an archive or to disk.
2007-09-27 03:45:24 +00:00
obrien
30cde5d032 MFC: flopen(3), expand_number(3), kld_isloaded(3) 2007-09-21 21:23:04 +00:00
obrien
1684759154 MFC: rev. 1.4: consume flopen(3). 2007-09-21 17:27:48 +00:00
obrien
a8179dace9 MFC: kld(3) 2007-09-21 14:52:31 +00:00
obrien
770cbe4aab style.Makefile(9) 2007-09-21 14:49:38 +00:00
obrien
30091bf34c MFC: flopen(3) 2007-09-21 14:41:55 +00:00
obrien
11a30b20fa Logically, this now first appeared in FreeBSD 6.3. 2007-09-21 14:39:46 +00:00
obrien
2ce446b128 MFC: refer to expand_number(3) and markup fixes 2007-09-21 14:35:34 +00:00
obrien
bd617ef43a MFC: expand_number(3) 2007-09-21 14:35:02 +00:00
ru
78a46e2fb2 MFC: 1.46: EVFILT_VNODE filtering isn't limited to UFS. 2007-09-10 07:45:39 +00:00
cvs2svn
14094fa00e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-09-09 01:28:04 +00:00
davidxu
de3edd54af MFC Revision 1.78:
> Output error message to STDERR_FILENO.
2007-09-04 05:51:00 +00:00
simon
0bac22ecad MFC rev 1.51:
Set timeout for all NIS RPC requests to 1 second and not just for
  yp_next as revision 1.50 did.  This should fix, or at least very much
  reduce the risk of, NIS timing out due to UDP packet loss for NIS
  functions.

  See also revision 1.50 for more details about the general problem.
2007-08-25 19:41:02 +00:00
kientzle
c478b42cd1 MFC: Opportunistic SUID/SGID restore.
If owner restore wasn't requested, then SUID/SGID restore
failures caused by owner/group mismatch won't be reported.
2007-08-25 04:42:01 +00:00
kientzle
090f1c5eb5 MFC archive_read_support_format_tar.c 1.61
This updates the support for GNU tar --posix --sparse archive
entries to be compatible with GNU tar 1.17.
2007-08-25 03:49:12 +00:00
cvs2svn
c37f50f631 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-08-18 04:08:54 +00:00
yar
f321b352ce MFC with compatibility shims:
pam_nologin(8) starts to provide an account management function in
addition to the existing authentication function so that sshd(8) can
respect nologin(5) while the rest of PAM consumers work as earlier.
In turn, sshd(8) starts to use the new account management function
in pam_nologin(8) and thus respect nologin(5) even when doing public
key authentication with sshd's internal routines (PAM authentication
isn't called at all in that case).

Based on:

  1.12      +2 -10     src/lib/libpam/modules/pam_nologin/pam_nologin.c
  1.6       +10 -11    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.16      +1 -1      src/etc/pam.d/sshd

Approved by:	des
PR:		bin/112574
2007-08-17 11:28:25 +00:00
kientzle
a238d47503 MFC 1.2: Fix strict-aliasing warning. 2007-08-07 04:32:49 +00:00
mav
85a93d460c MFC msg.c rev 1.13, 1.14; internal.h rev 1.5
Replace select() by poll() to avoid problems with big
descriptor number.
2007-08-03 18:33:43 +00:00
rafan
3c59e089b2 MFC ncurse manual page changes
- Correctly substitute variables like @NCURSES_MAJOR@ in manual pages

PR:		doc/114711
Submitted by:	Yuri Pankov <yuri at darklight.org.ru>
2007-07-24 01:48:10 +00:00
kientzle
d9bd584da3 MFC better error handling from archive_string_ensure()
failures.  Several key users of this function now simply
return ENOMEM to the caller instead of aborting the
program.
2007-07-19 14:31:52 +00:00
kientzle
98be2a65e0 MFC: archive_entry_copy_gname() and archive_entry_copy_uname() functions. 2007-07-18 04:57:32 +00:00
kientzle
33c4f41b55 MFC 1.59: Add back a mistakenly-removed 'break'. 2007-07-18 04:47:59 +00:00
brueffer
56768022c1 MFC: rev. 1.28
Take a sentence into the present by removing a reference to FreeBSD 3.0.
2007-07-17 08:34:34 +00:00
cperciva
e459c538fb Correct multiple security issues in how libarchive handles corrupt
tar archives, including a potentially exploitable buffer overflow.

Reviewed by:	kientzle
Security:	FreeBSD-SA-07:05.libarchive
2007-07-12 15:00:44 +00:00
yar
fa260264c0 MFC:
Use the current user's login class for the decisions about where
  the nologin(5) file is located and whether the user may bypass its
  restriction.

  Add some error checks.

  Revision  Changes    Path
  1.7       +16 -15    src/lib/libpam/modules/pam_nologin/pam_nologin.8
  1.13      +42 -29    src/lib/libpam/modules/pam_nologin/pam_nologin.c

Note: To avoid POLA violation, the merged module still lets root
in irrespective of login.conf settings.  In HEAD, root has to have
an explicit "ignorenologin" capability to bypass nologin(5).

PR:	bin/107612
2007-07-12 14:11:57 +00:00
yar
f510b9f527 MFC login_cap.3 1.35-1.37, login_cap.c 1.34:
- Finally document the LOGIN_MECLASS hack in the manpage and comments.
- Fix login_getcaplist() prototype in the manpage.
- Improve the manpage markup.
2007-07-12 13:25:55 +00:00
kientzle
5c3735c354 MFC unbreak installworld. <sigh>
Pointy hat: me
2007-07-07 16:59:11 +00:00
kientzle
3c3f90afd7 MFC some comment changes and a reworking of one cast.
With this change, libarchive source in -CURRENT and 6-STABLE
is exactly identical.  The only difference is the
version number (1.9 for 6-STABLE, 2.2 for -CURRENT) and
SHLIB_MAJOR (2 in 6-STABLE, 4 in -CURRENT).  The
source has conditionals to compile the old libarchive 1
API/ABI or the newer libarchive 2 API/ABI depending on
the version number set at compile time.
2007-07-06 16:08:04 +00:00
kientzle
a9b5028b89 MFC removal of extraneous file. This function has been moved
into archive_read.c.
2007-07-06 16:01:06 +00:00
kientzle
3cb23e7c55 MFC libarchive 1.9.
This is identical to libarchive 2.2.3 from -CURRENT, with
all of the performance improvements, bug fixes, and new
formats, except that:
  * archive_read_finish() and archive_write_finish() don't return errors
  * archive_write_data() has a different return type
  * user-provided skip callbacks have a slightly different signature

These differences maintain ABI compatibility with libarchive 1.3.1
(hence the "1" in "1.9") and allows libarchive 1.9 to have the
same SHLIB_MAJOR and otherwise serve as a straight replacement
for libarchive 1.3.1 (only better).

Thanks to:  Many, many people who contributed error reports, bug fixes,
  and suggestions over the last three years. ;-)
2007-07-05 01:56:41 +00:00
cvs2svn
65d8032785 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-07-04 23:27:39 +00:00
brueffer
d2ae102bbe MFC: rev. 1.11
Catch up with the code.
2007-06-23 15:37:34 +00:00
bde
e3a10cccc2 MFC: 1.9: fix an alaising bug. 2007-06-14 06:44:25 +00:00
bde
f51683d7a5 MFC:
Makefile 1.76
src/math.h 1.62
src/s_modfl.c 1.1

Implement modfl().

This is a minor API change which hopefully won't cause any problems.
2007-06-14 06:39:18 +00:00
bde
259278faba MFC: Makefile.inc 1.9: further deprecate scalb() and scalbf() by
removing their asm versions.  This fixes scalbf() as a side effect.
2007-06-14 06:25:31 +00:00
bde
f4df6ffb95 MFC:
s_modf.c 1.8
s_modff.c 1.8

Correctly handle inf/nan.
2007-06-14 06:08:38 +00:00
bde
12b3ebee26 MFC:
e_lgamma_r.c 1.9
e_lgammaf_r.c 1.10

Don't assume that int == int32_t.  Minor fixes in comments.  Describe
special cases in more detail.
2007-06-14 06:06:12 +00:00
bde
da488e0484 MFC: 1.11: fix the threshold for (not) using the simple Taylor approximation. 2007-06-14 05:59:07 +00:00
bde
1d0769f5da MFC: 1.8: several significant fixes and one optimization by merging better
code from sinmh() and tanhf().
2007-06-14 05:46:59 +00:00