Commit Graph

13041 Commits

Author SHA1 Message Date
christos
9487d441fb Preserve $$ in := assignments..
FOO=\$$CRAP
BAR:=${FOO}

all:
	echo ${FOO}
	echo ${BAR}
2016-01-09 00:55:17 +00:00
wiz
30e99be8f8 Fix downloads of local files using file:// URLs
Previously it would error out in copyurlinfo() when copying a NULL port.
2016-01-05 11:41:00 +00:00
kamil
4929734205 Bump date for previous 2016-01-04 23:55:36 +00:00
kamil
1b333769e1 Add HISTORY and AUTHORS to jot
John A. Kunze requested to add himself as the author of jot
on the FreeBSD bugzilla with the following text:

  Please re-instate my name (as "John A. Kunze") as AUTHOR of the
  jot, rs, and lam utilities.  I wrote these in 1982, around or
  before the time that I worked with Jordan at UCB (he left to work
  at FreeBSD and later at Apple).  Thank you!

  -- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786

While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.

Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.

Reviewed by <dholland>
2016-01-04 23:32:45 +00:00
kamil
ce1283db22 Add HISTORY and AUTHORS to lam
John A. Kunze requested to add himself as the authord of rs
on the FreeBSD bugzilla with the following text:

  Please re-instate my name (as "John A. Kunze") as AUTHOR of the
  jot, rs, and lam utilities.  I wrote these in 1982, around or
  before the time that I worked with Jordan at UCB (he left to work
  at FreeBSD and later at Apple).  Thank you!

  -- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786

While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.

Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.

Reviewed by <dholland>
2016-01-04 23:31:44 +00:00
kamil
48345a429a Add HISTORY and AUTHORS to rs
John A. Kunze requested to add himself as the authord of rs
on the FreeBSD bugzilla with the following text:

  Please re-instate my name (as "John A. Kunze") as AUTHOR of the
  jot, rs, and lam utilities.  I wrote these in 1982, around or
  before the time that I worked with Jordan at UCB (he left to work
  at FreeBSD and later at Apple).  Thank you!

  -- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786

While there add a note that this tool first appeared in BSD 4.2.
This information is based on the FreeBSD manual pages.

Patch submitted by Michal Mazurek <akfaew AT jasminek.net>.

Reviewed by <dholland>
2016-01-04 23:30:57 +00:00
martin
c7acead6b8 Cast register_t to unsigned long before printf'ing it with %lx. 2016-01-04 08:24:42 +00:00
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