Commit Graph

13034 Commits

Author SHA1 Message Date
christos
149dca8a74 be a bit smarter about fcntl 2016-01-03 22:05:18 +00:00
christos
90c146a94b Put back -n 2016-01-03 15:38:29 +00:00
christos
a7dfd957d5 Handle function symbol renames. 2016-01-02 17:44:33 +00:00
christos
7e015f61f6 print the length on error. 2016-01-02 17:44:21 +00:00
dholland
9dc9693718 Avoid leaking a file handle on error opening the next file. From
David Binderman in PR 50577.
2015-12-31 01:16:47 +00:00
christos
2732a80b37 Add rnd ops. 2015-12-30 18:15:38 +00:00
christos
dade5d6c98 print the tag symbolically if we don't support it. 2015-12-22 23:35:21 +00:00
christos
4fff4f53aa From FreeBSD:
- Whitespace cleanup
- Pass a filename rather than fd to libarchive (should work with 2.8+)
- Accept zipfiles from stdin
- Extract common code from extract()/extract_stdout() to extract2fd() (pending)
2015-12-21 17:17:02 +00:00
christos
e9dcc55b7e switch to getline(3) 2015-12-21 16:17:09 +00:00
sjg
349257c593 Suff_ClearSuffixes() needs to re-initialize suffNull,
otherwise its children retain old suffixes.
Have Suff_Init() call Suff_ClearSuffixes() for consistency.
2015-12-20 22:44:10 +00:00
christos
8ef345bff8 sort properly. 2015-12-20 00:48:36 +00:00
christos
ff6e2ff2e8 Sort the subsections too... Hi Matt, you were right. 2015-12-20 00:40:44 +00:00
joerg
d8a9f2abfc Fix tools build. 2015-12-19 17:30:00 +00:00
wiz
c4edf3f3df Fix xrefs. 2015-12-19 00:25:16 +00:00
christos
088e556329 add sortinfo 2015-12-18 18:56:47 +00:00
christos
1f7a09da7b mark function as only needed with ssl. 2015-12-17 20:36:36 +00:00
christos
01e355354c Split the position/size parsing into a separate function. 2015-12-17 17:26:45 +00:00
christos
33fd699b86 Simplify and factor out connect message 2015-12-17 17:08:45 +00:00
nonaka
ac27abcc55 - Fix to connect https via proxy.
- Fix ttyout message.
2015-12-17 04:36:56 +00:00
christos
7a83389f23 make DPRINTF/DWARN always statements. 2015-12-16 23:00:39 +00:00
christos
17562cefd2 PR/50438: NONAKA Kimihiro: ftp(1): CONNECT method support
Please test!
2015-12-16 21:11:47 +00:00
christos
941a869c25 more refactoring:
- introduce authinfo and urlinfo structures
	- split negotiation code out.
2015-12-16 19:17:16 +00:00
nonaka
f6c8c6eefb Fix compile failure without WITH_SSL.
>    /tmp/bracket/build/2015.12.15.21.01.27-i386/src/usr.bin/ftp/fetch.c: In function 'fetch_url':
>    /tmp/bracket/build/2015.12.15.21.01.27-i386/src/usr.bin/ftp/fetch.c:823:18: error: 'HTTPS_URL_T' undeclared (first use in this function)
>           urltype == HTTPS_URL_T ? &ssl : NULL);
2015-12-16 01:20:05 +00:00
christos
82dbb89087 Factor the proxy handling code out. 2015-12-15 21:45:21 +00:00
christos
605492b2a8 Separate no_proxy handling. 2015-12-15 21:01:27 +00:00
christos
9444a4268c Try to factor out some code, this is completely out of control. 2015-12-15 20:49:49 +00:00
christos
093dea8259 use ecalloc 2015-12-14 03:15:10 +00:00
christos
c7fdb70dcd PR/50546: David Binderman: Fix bad sizeof 2015-12-13 18:09:00 +00:00
tron
ce945c29d6 (Hopefully) fix build without IPv6 support 2015-12-13 14:06:13 +00:00
dholland
67d56d848e Clarify that SCCS is a specific thing and not a generic thing. 2015-12-12 09:52:40 +00:00
dholland
cd705862bc Remove spurious ARGSUSED. 2015-12-12 09:50:12 +00:00
plunky
d82c710316 update several profiles, bringing up to date decoding of all the
Bluetooth 1.1->4.2 Service Discovery specifications I could find,
namely:

    Wireless Access Protocol
    Multi-Profile Specification
    Calendar, Tasks & Notes
    Message Access Profile
    Message Notification Service
    Global Navigation Satellite System
    Health Device Profile
    File Transfer Protocol
    3D Display
    General Access Profile
    Generic Attribute Server

all documentation is on bluetooth.org, under

    https://www.bluetooth.org/en-us/specification
2015-12-11 21:05:18 +00:00
tron
0d7f9f570d Use the proper format "[IPv6 address]:port" when reporting connection
attempts to IPv6 endpoints.
2015-12-11 08:37:31 +00:00
christos
048e0d6b52 simplify. 2015-12-03 20:01:19 +00:00
christos
96135c5b6f PR/50496: Alex Kozlov: teach unzip to extract symlinks
Our libarchive does not handle symliks yet, but later versions do.
Set mode and times for symlinks. Finally handle hardlinks for
completion although they are not handled yet by librarchive.
2015-12-03 20:00:12 +00:00
sjg
b35a5f4c5f Fix evaluation of defined(FOO) and ${FOO} > 0
add a unit-test to catch it.
2015-12-02 00:28:24 +00:00
sjg
69ecbee5a0 Avoid calling brk_string() and hence Var_Export1() on
empty strings.
2015-12-01 07:26:08 +00:00
sjg
1c3d99f499 Use lstat(2) if we have a link, incase it is a symlink.
Patch from bdrewery at FreeBSD.org
2015-11-30 23:37:56 +00:00
sjg
bea1b39c5f Avoid accessing beyond end of empty string.
Detected by Address Sanitizer - dim at FreeBSD.org
2015-11-30 23:15:43 +00:00
sjg
8098e1a571 ParseTrackInput: do not access beyond end of buffer.
Detected by Address Sanitizer - dim at FreeBSD.org
2015-11-26 00:23:04 +00:00
christos
1ef9a127cf PR/50360: Thomas Klausner: Fix MKREPRO issue 2015-11-25 01:12:03 +00:00
uebayasi
e1ddff408d A few more. 2015-11-22 01:20:36 +00:00
christos
e9836e5e7e fix format 2015-11-21 15:22:17 +00:00
christos
301b67f323 WARNS=6 2015-11-21 15:01:43 +00:00
christos
2ea5bc272a PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g
Modernize.
2015-11-21 14:59:51 +00:00
christos
2e3d23cd2c redo previous, not needed. 2015-11-13 19:13:50 +00:00
christos
4ae24fd01a Handle 0b locally since anyway this is not portable. 2015-11-13 16:04:58 +00:00
christos
5e9bf06a78 Recognize binary constants 2015-11-12 17:34:01 +00:00
pooka
d0f0cf2fcb In ioconfname mode, #define IOCONF as the ioconf token.
Avoids having to retype the name to call config_init/fini_component().
2015-11-12 14:38:21 +00:00
christos
5851f02af6 Delete extra declaration of svc_fdset... And some commented out code.
This badly needs some modernization.
2015-11-08 01:59:31 +00:00