<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/ls.c, branch v6.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-08-09T09:45:17Z</updated>
<entry>
<title>Add a compile-time check to ensure that filetype</title>
<updated>2006-08-09T09:45:17Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-08-09T09:45:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a5e7cc0811dcf543078c0f7f79fa159232a0ea6f'/>
<id>urn:sha1:a5e7cc0811dcf543078c0f7f79fa159232a0ea6f</id>
<content type='text'>
and filetype_letter have the same number of elements.
</content>
</entry>
<entry>
<title>* src/ls.c (print_color_indicator): Test for S_IFREG first, rather</title>
<updated>2006-07-26T14:06:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-26T14:06:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d2c6ae7fbc6c26e45fe33882c673897602afc0d2'/>
<id>urn:sha1:d2c6ae7fbc6c26e45fe33882c673897602afc0d2</id>
<content type='text'>
than having the code test for all of the other types first.
Hoist the set-uid/gid-testing code "up" into this new block.
Classify any other type of file (e.g., S_TYPEISSHM, etc.) as
C_ORPHAN, not as C_FILE.

* doc/coreutils.texi (What information is listed): Mention that missing
pieces of information are marked with "?".  From Paul Eggert.
</content>
</entry>
<entry>
<title>Checking in a change from Paul.</title>
<updated>2006-07-26T13:47:41Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-26T13:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2465b478fd0952f68aaede95f6b2a0e1d0149f74'/>
<id>urn:sha1:2465b478fd0952f68aaede95f6b2a0e1d0149f74</id>
<content type='text'>
2006-07-25  Paul Eggert  &lt;eggert@cs.ucla.edu&gt;

* src/ls.c (DT_INIT): Remove.  All uses removed.
(enum filetype): Use an ordinary enum rather than trying to keep
the values in sync with DT_FIFO etc.  That way, we don't have
to make special assumptions about them.  All uses changed.
(whiteout): New constant member of enum filetype.
(filetype_letter): New constant, for use with enum filetype.
(FILETYPE_INDICATORS): New initializer list.
(print_dir): Add case for DT_WHT.
(gobble_file): If stat fails, don't discard information from
readdir; instead, preserve it so it can be printed.
(print_long_format): Fall back on readdir result if stat info
is not available.  Use "?" to denote each unknown mode char,
instead of an overall "?", since we now know some of the mode
typically.
(print_type_indicator): Now that MODE isn't necessarily
useful, guard all uses.
Now that two blocks in the type-checking tree can set "type = C_FILE",
move the suffix-handling code out and down.
</content>
</entry>
<entry>
<title>Prepare for the above change.</title>
<updated>2006-07-26T13:33:07Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-26T13:33:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=efb40f6b0fe50ea7452af98e07981da72cc67ae3'/>
<id>urn:sha1:efb40f6b0fe50ea7452af98e07981da72cc67ae3</id>
<content type='text'>
* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed,
and adjust uses.  From a patch by Paul Eggert.
</content>
</entry>
<entry>
<title>* src/ls.c: Correct indentation/formatting in a few places.</title>
<updated>2006-07-26T09:52:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-26T09:52:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=03d872537ab440a33c2dff59228f0beea50f66ba'/>
<id>urn:sha1:03d872537ab440a33c2dff59228f0beea50f66ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* src/ls.c (gobble_file): When handling a stat-failed entry,</title>
<updated>2006-07-25T16:35:59Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-25T16:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0b34021d6db942c7e70fbc95d2fc45ef6a7f36f6'/>
<id>urn:sha1:0b34021d6db942c7e70fbc95d2fc45ef6a7f36f6</id>
<content type='text'>
print the entry name not the absolute_name -- to be consistent
with the usual case.
* tests/ls/stat-failed: Update accordingly.
</content>
</entry>
<entry>
<title>* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.</title>
<updated>2006-07-25T15:34:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-25T15:34:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fd991bcc5749ec6709d8f56d4eb846ab1ff8865c'/>
<id>urn:sha1:fd991bcc5749ec6709d8f56d4eb846ab1ff8865c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get --dired offsets right when handling stat-failed entries.</title>
<updated>2006-07-25T15:30:27Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-25T15:30:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c04a374bb026e19b2a993681cadae617b918d692'/>
<id>urn:sha1:c04a374bb026e19b2a993681cadae617b918d692</id>
<content type='text'>
* src/ls.c (print_long_format): Be careful to increment P by the
appropriate amount, even when inode_number_width and nlink_width
are zero.
* tests/ls/stat-failed: Test for the above.
</content>
</entry>
<entry>
<title>* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the</title>
<updated>2006-07-25T15:25:37Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-25T15:25:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5a06d062c78b2f0b755eef9c4ec2faaf385fa6ac'/>
<id>urn:sha1:5a06d062c78b2f0b755eef9c4ec2faaf385fa6ac</id>
<content type='text'>
have_acl member.  That would happen for a directory with both a
non-stat'able entry and one with an ACL.
</content>
</entry>
<entry>
<title>* src/ls.c (gobble_file): Make it so failure to stat a</title>
<updated>2006-07-25T15:23:59Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-07-25T15:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3a208b14048121755eb01377f985372561a4b953'/>
<id>urn:sha1:3a208b14048121755eb01377f985372561a4b953</id>
<content type='text'>
non-command-line file provokes an exit status of 1, not 0.
Say "cannot access" rather than "cannot stat".
* tests/ls/stat-failed: New file/test, for the above.
* tests/ls/Makefile.am (TESTS): Add stat-failed.
</content>
</entry>
</feed>
