<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/gen/exec.3, branch release/4.7.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F4.7.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F4.7.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2002-10-08T05:39:08Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2002-10-08T05:39:08Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2002-10-08T05:39:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e1b05e3a6cd90b0bf91b47aeff71da2a9d048a9d'/>
<id>urn:sha1:e1b05e3a6cd90b0bf91b47aeff71da2a9d048a9d</id>
<content type='text'>
'RELENG_4_7_0_RELEASE'.

This commit was manufactured to restore the state of the 4.7-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
</entry>
<entry>
<title>MFC: Reduce gratuitous diffs to -CURRENT.</title>
<updated>2001-12-14T18:34:06Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-12-14T18:34:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d43ba9a6c11b67f36d3ed95ec03b95462069c014'/>
<id>urn:sha1:d43ba9a6c11b67f36d3ed95ec03b95462069c014</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: minor, assorted manual page fixes.</title>
<updated>2001-09-30T12:40:05Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-09-30T12:40:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d4db36d919e432bedfd923138463559b379b4947'/>
<id>urn:sha1:d4db36d919e432bedfd923138463559b379b4947</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: remove whitespace at EOL.</title>
<updated>2001-07-22T12:07:25Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-07-22T12:07:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b5cf87e26a33fe12c8e2238149b5896b328f7fe2'/>
<id>urn:sha1:b5cf87e26a33fe12c8e2238149b5896b328f7fe2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: remove duplicate words.</title>
<updated>2001-07-22T10:14:52Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-07-22T10:14:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fe0df0b0b5e72a1bbac9223d22c456f6f33094be'/>
<id>urn:sha1:fe0df0b0b5e72a1bbac9223d22c456f6f33094be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: r1.10: correct search path</title>
<updated>2001-03-05T04:36:36Z</updated>
<author>
<name>Kris Kennaway</name>
<email>kris@FreeBSD.org</email>
</author>
<published>2001-03-05T04:36:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=48ef9d7dac80bb69a7f0a99b96c105fc238117b2'/>
<id>urn:sha1:48ef9d7dac80bb69a7f0a99b96c105fc238117b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: mdoc(7) police: Ft/Vt now accept punctuation-type arguments.</title>
<updated>2001-01-12T16:16:02Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-01-12T16:16:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=53f9e548372220f271f3e664a0caffa4f4d0761e'/>
<id>urn:sha1:53f9e548372220f271f3e664a0caffa4f4d0761e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: introduce .Lb macro to libc manpages</title>
<updated>2000-04-22T17:07:11Z</updated>
<author>
<name>Alexey Zelkin</name>
<email>phantom@FreeBSD.org</email>
</author>
<published>2000-04-22T17:07:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=95f2a893681eecfed2da1fc6b9af60147b7c26b7'/>
<id>urn:sha1:95f2a893681eecfed2da1fc6b9af60147b7c26b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T00:22:10Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T00:22:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7f3dea244c40159a41ab22da77a434d7c5b5e85a'/>
<id>urn:sha1:7f3dea244c40159a41ab22da77a434d7c5b5e85a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed searching of $PATH in execvp().  Do what sh(1) should do according</title>
<updated>1997-10-14T07:23:16Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1997-10-14T07:23:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1df595f25dae340c439be4d028cbb72a0894e1a6'/>
<id>urn:sha1:1df595f25dae340c439be4d028cbb72a0894e1a6</id>
<content type='text'>
to POSIX.2.  In particular:

- don't retry for ETXTBSY.  This matches what sh(1) does.  The retry code
  was broken anyway.  It only slept for several seconds for the first few
  retries.  Then it retried without sleeping.
- don't abort the search for errors related to the path prefix, in
  particular for ENAMETOOLONG, ENOTDIR, ELOOP.  This fixes PR1487.  sh(1)
  gets this wrong in the opposite direction by never aborting the search.
- don't confuse EACCES for errors related to the path prefix with EACCES
  for errors related to the file.  sh(1) gets this wrong.
- don't return a stale errno when the search terminates normally without
  finding anything.  The errno for the last unsuccessful execve() was
  usually returned.  This gave too much precedence to pathologies in the
  last component of $PATH.  This bug is irrelevant for sh(1).

The implementation still uses the optimization/race-inhibitor of trying
to execve() things first.  POSIX.2 seems to require looking at file
permissions using stat().  We now use stat() after execve() if execve()
fails with an ambiguous error.  Trying execve() first may actually be a
pessimization, since failing execve()s are fundamentally a little slower
than stat(), and are significantly slower when a file is found but has
unsuitable permissions or points to an unsuitable interpreter.

PR:		1487
</content>
</entry>
</feed>
