<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/pathchk.c, branch v6.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-10-10T22:57:07Z</updated>
<entry>
<title>* src/ls.c (quote_name): Use initializer rather than memset to</title>
<updated>2006-10-10T22:57:07Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-10-10T22:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e245a66054cac00f2916fbc9436d926ea2cf4d1c'/>
<id>urn:sha1:e245a66054cac00f2916fbc9436d926ea2cf4d1c</id>
<content type='text'>
initialize an object to zero.  This is easier to read and is less
likely to introduce an runtime error due to a mixup.  It causes
gcc -W to issue a warning, but you can work around this by
appending -Wno-missing-field-initializers.
* src/pathchk.c (portable_chars_only): Likewise.
* src/shred.c (main): Likewise.
* src/stty.c (main): Likewise.
* src/tr.c (card_of_complement): Likewise.
* src/wc.c (wc): Likewise.
</content>
</entry>
<entry>
<title>Avoid a compiler warning.</title>
<updated>2006-10-09T11:56:40Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-10-09T11:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6089facdc39bc6e3d92a0e5f8f3e201b405dabae'/>
<id>urn:sha1:6089facdc39bc6e3d92a0e5f8f3e201b405dabae</id>
<content type='text'>
* src/pathchk.c (portable_chars_only): Initialize variable of type
mbstate_t via memset, rather than via '{0}'.  Patch from Bruno Haible.
</content>
</entry>
<entry>
<title>(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:</title>
<updated>2005-05-30T07:05:07Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-05-30T07:05:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b224f94761aebcd623cecb3b1050b89c945d7808'/>
<id>urn:sha1:b224f94761aebcd623cecb3b1050b89c945d7808</id>
<content type='text'>
Define to 256, not 255, as per modern POSIX.
</content>
</entry>
<entry>
<title>Update FSF postal mail address.</title>
<updated>2005-05-14T07:58:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-05-14T07:58:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=44d59bb168eaf820bdfd13ee9df442cde795f9c7'/>
<id>urn:sha1:44d59bb168eaf820bdfd13ee9df442cde795f9c7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update FSF postal mail address.</title>
<updated>2005-05-14T06:57:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-05-14T06:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0c815af8db441526ef112700b9185df6006c771'/>
<id>urn:sha1:c0c815af8db441526ef112700b9185df6006c771</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update copyright date.</title>
<updated>2005-01-10T18:11:57Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-01-10T18:11:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f0f5a2708a446f007b1c6e9787349b76f684eb50'/>
<id>urn:sha1:f0f5a2708a446f007b1c6e9787349b76f684eb50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(PORTABILITY_OPTION): New constant.</title>
<updated>2005-01-10T18:09:02Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-01-10T18:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b4e248dea94fafe585ff32f6b58b112d24f9cfb0'/>
<id>urn:sha1:b4e248dea94fafe585ff32f6b58b112d24f9cfb0</id>
<content type='text'>
(longopts, usage, main, validate_file_name):
Add support for new -P option.
Reject empty file names (unless -p is not specified and the
current system allows empty file names).
Change --portability so that is now equivalent to -p -P.
Don't test whether file name is too long, if it is known to exist.
(no_leading_hyphen): New function.
</content>
</entry>
<entry>
<title>(validate_file_name): Give a more descriptive</title>
<updated>2004-10-18T08:19:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2004-10-18T08:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=385f1ab2a0b6c57cf087553a69f5f0c0d9f42fb2'/>
<id>urn:sha1:385f1ab2a0b6c57cf087553a69f5f0c0d9f42fb2</id>
<content type='text'>
diagnostic when pathconf fails.  This also avoids an unwarranted
warning from gcc-3.3.5 about a format not being a string literal.
</content>
</entry>
<entry>
<title>(AUTHORS): Add self.</title>
<updated>2004-10-18T06:30:49Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2004-10-18T06:30:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8d177f684a34b98ab8e1c3b04c741a31cf050de2'/>
<id>urn:sha1:8d177f684a34b98ab8e1c3b04c741a31cf050de2</id>
<content type='text'>
Change "path" to "file name" whenever possible.
Remove usage comment, as it was a duplication of the code or doc.
Include &lt;wchar.h&gt; if available.
(mbrlen, mbstate_t) [! (HAVE_MBRLEN &amp;&amp; HAVE_MBSTATE_T)]: Define.
(NEED_PATHCONF_WRAPPER, PATH_MAX, PATH_MAX_FOR, NAME_MAX,
pathconf_wrapper, portable_chars, dir_ok): Remove.
(NAME_MAX_MINIMUM, PATH_MAX_MINIMUM): New macros.
(pathconf, _PC_NAME_MAX, _PC_PATH_MAX): Define if nonexistent.
(portable_chars_only): New arg FILELEN.
Don't assume ASCII; we might be on an EBCDIC host.
Don't assume unibyte locale in diagnostic.
(component_start, component_len): New functions.
(validate_file_name): Renamed from validate_path.  All uses changed.
Pretty much a complete rewrite.
Don't make copy of file arg.  Always append trailing slash to
pathconf arg, just in case it's a symlink (this is pure paranoia;
we don't know of any hosts where the trailing slash is required).
Use size_t instead of long int when possible.
Avoid need to call pathconf in most practical cases.
Don't use euidaccess several times to test searchability;
just use lstat once.  Reword diagnostic to put the (often very long)
file names last.
</content>
</entry>
<entry>
<title>(longopts): Add --help, --version.</title>
<updated>2004-09-21T22:11:28Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2004-09-21T22:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=288994697f3ae979c5d7f4d781b7ab637addcf0a'/>
<id>urn:sha1:288994697f3ae979c5d7f4d781b7ab637addcf0a</id>
<content type='text'>
(main): Use longopts rather than parse_long_options.
(main): Don't reorder arguments, so that we can check weird file names.
</content>
</entry>
</feed>
