<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.sbin/mtree, branch release/2.2.8</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.2.8</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.2.8'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>1998-07-18T11:12:47Z</updated>
<entry>
<title>MFC: doc changes, new rate-limiting inetd(8), lots of minor cosmetic tweaks.</title>
<updated>1998-07-18T11:12:47Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1998-07-18T11:12:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cfbe635f8e8f7639fbd749c38e02a1d354508368'/>
<id>urn:sha1:cfbe635f8e8f7639fbd749c38e02a1d354508368</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: FTS_PHYSICAL -&gt; FTS_LOGICAL</title>
<updated>1998-03-09T12:32:09Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>1998-03-09T12:32:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ad8f2c563475c09f727ae61fed88b47cdcf28b15'/>
<id>urn:sha1:ad8f2c563475c09f727ae61fed88b47cdcf28b15</id>
<content type='text'>
MFC: cosmetique
</content>
</entry>
<entry>
<title>MFC: Use err(3) instead of local redefinition.</title>
<updated>1997-10-02T11:40:14Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>1997-10-02T11:40:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=39689f1c5d66e3fce8d86c5e6fd77ac4bf7375c4'/>
<id>urn:sha1:39689f1c5d66e3fce8d86c5e6fd77ac4bf7375c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC: getopt returns -1 not EOF</title>
<updated>1997-08-29T05:16:14Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>1997-08-29T05:16:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4a796f06acb443b965b3c5681305648088812d9c'/>
<id>urn:sha1:4a796f06acb443b965b3c5681305648088812d9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>YAMFC:</title>
<updated>1997-03-06T08:01:10Z</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1997-03-06T08:01:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a5b108bc51bd1997e5c44253d326c14a5ffda682'/>
<id>urn:sha1:a5b108bc51bd1997e5c44253d326c14a5ffda682</id>
<content type='text'>
- sort xrefs
- typo fixes.
</content>
</entry>
<entry>
<title>ts_sec -&gt; tv_sec</title>
<updated>1996-09-20T04:13:44Z</updated>
<author>
<name>Nate Williams</name>
<email>nate@FreeBSD.org</email>
</author>
<published>1996-09-20T04:13:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2514dd6975446feedaede3c788801b17a74082cc'/>
<id>urn:sha1:2514dd6975446feedaede3c788801b17a74082cc</id>
<content type='text'>
ts_nsec -&gt; tv_nsec

Pointed out by:	bde
</content>
</entry>
<entry>
<title>Correct a bunch of man page cross references and generally</title>
<updated>1996-02-11T22:38:05Z</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1996-02-11T22:38:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=78b0b234eb5a179413189a3e2561e894c9c18135'/>
<id>urn:sha1:78b0b234eb5a179413189a3e2561e894c9c18135</id>
<content type='text'>
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.
</content>
</entry>
<entry>
<title>Fix a bunch of spelling errors in a bunch of man pages.</title>
<updated>1996-01-30T13:52:50Z</updated>
<author>
<name>Mike Pritchard</name>
<email>mpp@FreeBSD.org</email>
</author>
<published>1996-01-30T13:52:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4a8d02835c2544e65713d27352cb3be0bd5d1c84'/>
<id>urn:sha1:4a8d02835c2544e65713d27352cb3be0bd5d1c84</id>
<content type='text'>
</content>
</entry>
<entry>
<title>st_size in struct stat has type off_t (long long) and not unsigned long</title>
<updated>1995-10-06T16:25:10Z</updated>
<author>
<name>Torsten Blum</name>
<email>torstenb@FreeBSD.org</email>
</author>
<published>1995-10-06T16:25:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=10e1798df55c45362f904cc93c82b56915b54a17'/>
<id>urn:sha1:10e1798df55c45362f904cc93c82b56915b54a17</id>
<content type='text'>
change strtoul() to strtoq()
</content>
</entry>
<entry>
<title>Use p-&gt;fts_level instead of unsuccessfully trying to keep track of the</title>
<updated>1995-07-24T02:52:42Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1995-07-24T02:52:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6f4640cac61b1b7b5664849a38a316d272bd6fb2'/>
<id>urn:sha1:6f4640cac61b1b7b5664849a38a316d272bd6fb2</id>
<content type='text'>
level ourself.  We failed for unreadable directories.  E.g.,
`mtree -d -f /etc/mtree/BSD.usr.dist -p /usr' run by `nobody' was
confused after it couldn't descend into /usr/games/hide.  It looked
for /usr/include and subsequent directories in /usr/games.

Don't search for `extra' files when the spec depth is less than the
fts level.  The spec depth isn't incremented for leaf nodes because
that would give a NULL level pointer and make it inconvenient to go
back to the parent level.  Leaf nodes are built for directories that
are empty in the spec.  Since they are empty in the spec, all files
in them are extra.  The search looked for files one spec level
too high, so for `mtree -d -f /etc/mtree/BSD.usr.dist -p /usr',
obj/sbin matched ./sbin and wasn't considered extra, so it was
descended into and lots of bogus extra things in it were found.
This was harmful for `mtree -U' (as reported in pr623) and worse
for `mtree -r'.

Use rmdir(), not unlink(), to remove `extra' directories.  unlink()
succeeds for root but unlinking directories normally damages the
file system.

Report `fts_errno' instead of `errno' when the former applies.
</content>
</entry>
</feed>
