<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests, branch v8.1</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.1</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-11-16T08:30:43Z</updated>
<entry>
<title>tail -F can fail to track a file after it's been rotated</title>
<updated>2009-11-16T08:30:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-15T08:25:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3b997a9bcb05198c880e5d1605a3c96c1d7f9c5d'/>
<id>urn:sha1:3b997a9bcb05198c880e5d1605a3c96c1d7f9c5d</id>
<content type='text'>
Tailing forever and by-name (--follow=name, -F), tail would
sometimes fail to follow a file that had been removed via rename.
If you can't apply this patch and have tail 7.6 or newer, you can
work around the bug via the undocumented --disable-inotify option.
* src/tail.c (tail_forever_inotify): When tailing by name (-F),
do not un-watch a file upon receipt of the IN_MOVE_SELF event.
Reported by Arjan Opmeer in http://bugs.debian.org/548439.
* NEWS (Bug fixes): Mention it.
Also see http://marc.info/?l=coreutils-bug&amp;m=125829031916515
* tests/Makefile.am (TESTS): Add tail-2/inotify-rotate.
* tests/tail-2/inotify-rotate: New test.
</content>
</entry>
<entry>
<title>tests: help-version: exit nonzero when $built_programs is empty</title>
<updated>2009-11-14T14:01:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-13T20:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=00f0cabaecdd490529d05230435671eb89a7b5c5'/>
<id>urn:sha1:00f0cabaecdd490529d05230435671eb89a7b5c5</id>
<content type='text'>
* tests/misc/help-version: Use "Exit 1", rather than "Exit $fail"
with fail defined to 0 when $built_programs is empty.
</content>
</entry>
<entry>
<title>tests: avoid a spurious failure on a loaded system</title>
<updated>2009-11-14T13:53:17Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-11-13T22:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9ed50481484587e683a8a644ba4a121d6a36498e'/>
<id>urn:sha1:9ed50481484587e683a8a644ba4a121d6a36498e</id>
<content type='text'>
* tests/misc/timeout-parameters: This test could fail due to
the 1-second timeout expiring before a command of "no_such"
could be exec'd and fail.  Increase to 10 seconds.
</content>
</entry>
<entry>
<title>tests: avoid a spurious timeout on a heavily-loaded system</title>
<updated>2009-11-13T15:38:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-11-13T15:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4c9e7e01faf054811a65e28ff95f5f949ac0eac9'/>
<id>urn:sha1:4c9e7e01faf054811a65e28ff95f5f949ac0eac9</id>
<content type='text'>
* tests/misc/timeout-parameters: This test would fail due to
the 1-second timeout expiring before a command of "." could
be exec'd and fail.  Increase to 10 seconds.
</content>
</entry>
<entry>
<title>ls: fix capability coloring</title>
<updated>2009-11-09T08:16:20Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-11-08T03:45:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=10d97b31910b0030f7716474a48b3fc8e00dd216'/>
<id>urn:sha1:10d97b31910b0030f7716474a48b3fc8e00dd216</id>
<content type='text'>
Capability checking was incorrectly done on just the base name
rather than on the whole path.  Consequently there could be both
false positives and negatives when coloring files with capabilities.
Also capability checking was not done at all in certain cases for
non executable files.  Note passing absolute rather than relative
names to cap_get_file() reduces the has_capability() overhead
from around 33% to 30%.  I.E. ls --color is now around 3% faster.

* src/ls.c (struct fileinfo): Add a has_capability member.
(print_color_indicator): Refactor to pass just a fileinfo pointer
and a flag to say if we're dealing with a symlink target.
(print_name_with_quoting): Likewise.
(gobble_file): Set has_capability in the fileinfo struct.  Also do
a capability check even if executable coloring is disabled.
Ditto for SETUID and SETUID coloring.
Comment on how expensive has_capability() is.
(print_long_format): Adjust to refactored print_name_with_quoting.
(quote_name): Likewise.
(print_file_name_and_frills): Likewise.
* tests/ls/capability: Test the various false positive and negatives.
* THANKS: Add reporter (Ivan Labath).
* NEWS: Mention the fix.
</content>
</entry>
<entry>
<title>mktemp: fix bug with -q and closed stdout</title>
<updated>2009-11-07T17:10:25Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-05T19:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c768e2231b89901a2e29c3bf96c027b64f8646d9'/>
<id>urn:sha1:c768e2231b89901a2e29c3bf96c027b64f8646d9</id>
<content type='text'>
If stdin or stdout is closed, then freopen(,stderr) can violate
the premise that STDERR_FILENO==fileno(stderr), which in turn
breaks mktemp -q.

* bootstrap.conf (gnulib_modules): Add freopen-safer.
* src/mktemp.c (includes): Use stdio--.h.
* tests/misc/close-stdout: Enhance test to catch bug.
</content>
</entry>
<entry>
<title>nproc: A new program to count the available processors</title>
<updated>2009-11-06T16:54:12Z</updated>
<author>
<name>Giuseppe Scrivano</name>
<email>gscrivano@gnu.org</email>
</author>
<published>2009-10-31T17:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f'/>
<id>urn:sha1:74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f</id>
<content type='text'>
* AUTHORS: Add my name.
* NEWS: Mention it.
* README: Likewise.
* bootstrap.conf (gnulib_modules): Add nproc.
* doc/coreutils.texi (nproc invocation): Add nproc info.
* man/Makefile.am (nproc.1): Add dependency.
* man/nproc.x: New template.
* man/.gitignore: Ignore generated man page.
* po/POTFILES.in: Add src/nproc.c.
* src/.gitignore: Exclude nproc.
* src/Makefile.am (EXTRA_PROGRAMS): Add nproc.
* src/nproc.c: New file.
* tests/Makefile.am (TESTS): Add misc/nproc-{avail,positive}.
* tests/misc/nproc-avail: New file.
* tests/misc/nproc-positive: New file.
</content>
</entry>
<entry>
<title>mktemp: enhance test to catch just-fixed typo behavior</title>
<updated>2009-11-05T20:12:33Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-05T15:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=20e5a0d562cf698fab7be3d04c5f1c356faa2dbb'/>
<id>urn:sha1:20e5a0d562cf698fab7be3d04c5f1c356faa2dbb</id>
<content type='text'>
Penance for botching the conflict resolution while rebasing my series.

* tests/misc/mktemp (check_tmp): Test for the bug when wrong parameter
is used.
</content>
</entry>
<entry>
<title>mktemp: add suffix handling</title>
<updated>2009-11-05T14:10:40Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-04T18:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=31a9937081dc41a5f8d28d71709204e413e09972'/>
<id>urn:sha1:31a9937081dc41a5f8d28d71709204e413e09972</id>
<content type='text'>
Now that mkstemps is supported, we might as well use it.

* src/mktemp.c (TMPDIR_OPTION): New enum value.
(longopts): Add new option.
(usage): Document it.
(count_trailing_X_s): Rename...
(count_consecutive_X_s): ...to this, and add parameter.
(mkstemp_len, mkdtemp_len): Add parameter.
(main): Implement new option.
(AUTHORS): Add myself.
* AUTHORS (mktemp): Likewise.
* tests/misc/mktemp: Test new option.
* doc/coreutils.texi (mktemp invocation): Document it.
* NEWS: Likewise.
Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548316.
</content>
</entry>
<entry>
<title>tests: enhance mktemp test</title>
<updated>2009-11-05T13:54:56Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-11-04T16:01:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e89a5e9b132a1f83e63a02ae8c6459fd6c41372b'/>
<id>urn:sha1:e89a5e9b132a1f83e63a02ae8c6459fd6c41372b</id>
<content type='text'>
* tests/misc/mktemp: Add more coverage.
</content>
</entry>
</feed>
