<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin, branch stable/9</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F9</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F9'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2016-12-26T16:45:00Z</updated>
<entry>
<title>MFC r310367:</title>
<updated>2016-12-26T16:45:00Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-12-26T16:45:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e4a883d4adb07d754a8e2cea06bf424bf3ec6383'/>
<id>urn:sha1:e4a883d4adb07d754a8e2cea06bf424bf3ec6383</id>
<content type='text'>
pax(1):	Fix a bug with archives smaller than 512 bytes.

The problem here is that the archive is too short (&lt; 512 bytes). The
buffer routines, try to read at least 512 bytes, even when we try to
determine what format file we have, which is wrong.

Obtained from:	NetBSD (CVS rev 1.26)
</content>
</entry>
<entry>
<title>MFC r300322, 300340:</title>
<updated>2016-06-03T03:22:00Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-06-03T03:22:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=930fb09ac1afd98ab8cf1ce00a0fa4ff296f1ecc'/>
<id>urn:sha1:930fb09ac1afd98ab8cf1ce00a0fa4ff296f1ecc</id>
<content type='text'>
ed(1): Cleanups for the DES mode.

- Use arc4random_buf(3).
- Prevent a segmentation fault when ed receives a signal
  while being in getpass(). [1]

Obtained from:	OpenBSD [1] (CVS Rev. 1.15)
</content>
</entry>
<entry>
<title>MFC r299035: sh: Handle empty hostname and $PWD when building prompt</title>
<updated>2016-05-11T22:13:50Z</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2016-05-11T22:13:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=af2bad07d770105d349dbd064fffda06f525ee11'/>
<id>urn:sha1:af2bad07d770105d349dbd064fffda06f525ee11</id>
<content type='text'>
If the hostname is empty and \h is used in $PS1,
the remainder of the prompt following \h will be empty.
Likewise for $PWD and \w.  Fix it.
</content>
</entry>
<entry>
<title>MFC r298640:</title>
<updated>2016-04-29T03:13:18Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-04-29T03:13:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=821109374a9b21ec52a0054997c62e3d8c080961'/>
<id>urn:sha1:821109374a9b21ec52a0054997c62e3d8c080961</id>
<content type='text'>
ed(1): switch two statements so we check the index before dereferencing.
</content>
</entry>
<entry>
<title>MFC r295147:</title>
<updated>2016-02-03T11:41:55Z</updated>
<author>
<name>Hajimu UMEMOTO</name>
<email>ume@FreeBSD.org</email>
</author>
<published>2016-02-03T11:41:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=361ba67e34185772c5db46bfc3481c159ab27169'/>
<id>urn:sha1:361ba67e34185772c5db46bfc3481c159ab27169</id>
<content type='text'>
  Make dynamic link of libiconv from ports work again.
  The symbols of libiconv from ports were changed to
  have prefixed.
  Since we have iconv in our libc these days, we don't
  need it on 10.X and later.  However, 9.X still need
  this.
</content>
</entry>
<entry>
<title>MFC	r292877:</title>
<updated>2016-01-06T16:35:30Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-01-06T16:35:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f520bd63eed05f6a91574c5ae88c7a0cd41e7ffb'/>
<id>urn:sha1:f520bd63eed05f6a91574c5ae88c7a0cd41e7ffb</id>
<content type='text'>
pax: prevent possible buffer overflow

Or at least quiet down some static analyzers about it.

CID:	978835
Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>MFC	r292454, r292455</title>
<updated>2015-12-26T18:38:09Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-12-26T18:38:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=51fd9d02da12b74c499ea76856412380b817f358'/>
<id>urn:sha1:51fd9d02da12b74c499ea76856412380b817f358</id>
<content type='text'>
ed(1): Prevent possible string overflows

Use strlcpy to guarantee NULL termination.

With hint from:	imp, cem, ngie
CID:		1007252
</content>
</entry>
<entry>
<title>MFC r284105,r284106,r284163:</title>
<updated>2015-12-04T17:49:05Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2015-12-04T17:49:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a2e6bdc75f52651010d3c69d8ecbdc4ba938de3b'/>
<id>urn:sha1:a2e6bdc75f52651010d3c69d8ecbdc4ba938de3b</id>
<content type='text'>
  r284105:
    Cleanup some indentation issues.
  r284106:
    Implement '-s' to copy as symlink, similar to the current -l link(2)
    handling.
  r284163:
    Cleanup some style(9) issues.

Relnotes:	yes
</content>
</entry>
<entry>
<title>MFC r245832:</title>
<updated>2015-12-04T17:48:11Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2015-12-04T17:48:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=de2dc2b352fe5e604dfa06c586407fee86ff4f4b'/>
<id>urn:sha1:de2dc2b352fe5e604dfa06c586407fee86ff4f4b</id>
<content type='text'>
  Return "failure" as we do for 'cp -i' and a "n" answer.

Relnotes:	yes
</content>
</entry>
<entry>
<title>MFC 269656,270024,270443,270993:</title>
<updated>2015-09-09T23:05:52Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2015-09-09T23:05:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b0ba1ac6e105b30dbd8f3fb744966de35c7f3f6e'/>
<id>urn:sha1:b0ba1ac6e105b30dbd8f3fb744966de35c7f3f6e</id>
<content type='text'>
Fix problems with orphan handling.  Note that to preserve KBI, p_treeflag
has been added to the end of struct proc and is explicitly zero'd during
fork.

269656:
Correct the problems with the ptrace(2) making the debuggee an orphan.
One problem is inferior(9) looping due to the process tree becoming a
graph instead of tree if the parent is traced by child. Another issue
is due to the use of p_oppid to restore the original parent/child
relationship, because real parent could already exited and its pid
reused (noted by mjg).

Add the function proc_realparent(9), which calculates the parent for
given process. It uses the flag P_TREE_FIRST_ORPHAN to detect the head
element of the p_orphan list and than stepping back to its container
to find the parent process. If the parent has already exited, the
init(8) is returned.

Move the P_ORPHAN and the new helper flag from the p_flag* to new
p_treeflag field of struct proc, which is protected by proctree lock
instead of proc lock, since the orphans relationship is managed under
the proctree_lock already.

The remaining uses of p_oppid in ptrace(PT_DETACH) and process
reapping are replaced by proc_realparent(9).

270024:
Correct the order of arguments passed to LIST_INSERT_AFTER().

270443:
Properly reparent traced processes when the tracer dies.

Previously they were uncoditionally reparented to init. In effect
it was possible that tracee was never returned to original parent.

270993:
Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced
processes.
</content>
</entry>
</feed>
