<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/glibc.git/inet/ruserpass.c, branch master</title>
<subtitle>GNU C Library
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/'/>
<updated>2025-10-29T15:54:01Z</updated>
<entry>
<title>Annotate swtich fall-through</title>
<updated>2025-10-29T15:54:01Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2025-10-28T17:08:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=970364dac00b38333e5b2d91c90d11e80141d265'/>
<id>urn:sha1:970364dac00b38333e5b2d91c90d11e80141d265</id>
<content type='text'>
The clang default to warning for missing fall-through and it does
not support all comment-like annotation that gcc does.  Use C23
[[fallthrough]] annotation instead.
proper attribute instead.

Reviewed-by: Collin Funk &lt;collin.funk1@gmail.com&gt;
</content>
</entry>
<entry>
<title>Silence most -Wzero-as-null-pointer-constant diagnostics</title>
<updated>2024-11-25T19:45:59Z</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx@kernel.org</email>
</author>
<published>2024-11-16T15:51:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=53fcdf5f743aa9b02972eec658e66f96d6a63386'/>
<id>urn:sha1:53fcdf5f743aa9b02972eec658e66f96d6a63386</id>
<content type='text'>
Replace 0 by NULL and {0} by {}.

Omit a few cases that aren't so trivial to fix.

Link: &lt;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059&gt;
Link: &lt;https://software.codidact.com/posts/292718/292759#answer-292759&gt;
Signed-off-by: Alejandro Colomar &lt;alx@kernel.org&gt;
</content>
</entry>
<entry>
<title>inet: Use 64 bit stat for ruserpass (BZ# 29210)</title>
<updated>2022-06-01T16:23:16Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2022-05-31T15:34:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=3cd4785ea02cc3878bf21996cf9b61b3a306447e'/>
<id>urn:sha1:3cd4785ea02cc3878bf21996cf9b61b3a306447e</id>
<content type='text'>
This is a missing spot initially from 52a5fe70a2c77935.

Checked on i686-linux-gnu.
</content>
</entry>
<entry>
<title>Remove internal usage of extensible stat functions</title>
<updated>2020-09-11T17:35:32Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2020-07-15T19:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=04986243d1af37ac0177ed2f9db0a066ebd2b212'/>
<id>urn:sha1:04986243d1af37ac0177ed2f9db0a066ebd2b212</id>
<content type='text'>
It replaces the internal usage of __{f,l}xstat{at}{64} with the
__{f,l}stat{at}{64}.  It should not change the generate code since
sys/stat.h explicit defines redirections to internal calls back to
xstat* symbols.

Checked with a build for all affected ABIs.  I also check on
x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Lukasz Majewski &lt;lukma@denx.de&gt;
</content>
</entry>
<entry>
<title>manual: Revise crypt.texi.</title>
<updated>2018-06-29T14:53:37Z</updated>
<author>
<name>Zack Weinberg</name>
<email>zackw@panix.com</email>
</author>
<published>2018-06-29T14:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=841785bad14dfad81a0af94900310141c59f26a4'/>
<id>urn:sha1:841785bad14dfad81a0af94900310141c59f26a4</id>
<content type='text'>
This is a major rewrite of the description of 'crypt', 'getentropy',
and 'getrandom'.

A few highlights of the content changes:

 - Throughout the manual, public headers, and user-visible messages,
   I replaced the term "password" with "passphrase", the term
   "password database" with "user database", and the term
   "encrypt(ion)" with "(one-way) hashing" whenever it was applied to
   passphrases.  I didn't bother making this change in internal code
   or tests.  The use of the term "password" in ruserpass.c survives,
   because that refers to a keyword in netrc files, but it is adjusted
   to make this clearer.

   There is a note in crypt.texi explaining that they were
   traditionally called passwords but single words are not good enough
   anymore, and a note in users.texi explaining that actual passphrase
   hashes are found in a "shadow" database nowadays.

 - There is a new short introduction to the "Cryptographic Functions"
   section, explaining how we do not intend to be a general-purpose
   cryptography library, and cautioning that there _are_, or have
   been, legal restrictions on the use of cryptography in many
   countries, without getting into any kind of detail that we can't
   promise to keep up to date.

 - I added more detail about what a "one-way function" is, and why
   they are used to obscure passphrases for storage.  I removed the
   paragraph saying that systems not connected to a network need no
   user authentication, because that's a pretty rare situation
   nowadays.  (It still says "sometimes it is necessary" to
   authenticate the user, though.)

 - I added documentation for all of the hash functions that glibc
   actually supports, but not for the additional hash functions
   supported by libxcrypt.  If we're going to keep this manual section
   around after the transition is more advanced, it would probably
   make sense to add them then.

 - There is much more detailed discussion of how to generate a salt,
   and the failure behavior for crypt is documented.  (Returning an
   invalid hash on failure is what libxcrypt does; Solar Designer's
   notes say that this was done "for compatibility with old programs
   that assume crypt can never fail".)

 - As far as I can tell, the header 'crypt.h' is entirely a GNU
   invention, and never existed on any other Unix lineage.  The
   function 'crypt', however, was in Issue 1 of the SVID and is now
   in the XSI component of POSIX.  I tried to make all of the
   @standards annotations consistent with this, but I'm not sure I got
   them perfectly right.

 - The genpass.c example has been improved to use getentropy instead
   of the current time to generate the salt, and to use a SHA-256 hash
   instead of MD5. It uses more random bytes than is strictly
   necessary because I didn't want to complicate the code with proper
   base64 encoding.

 - The testpass.c example has three hardwired hashes now, to
   demonstrate that different one-way functions produce different
   hashes for the same input.  It also demonstrates how DES hashing
   only pays attention to the first eight characters of the input.

 - There is new text explaining in more detail how a CSPRNG differs
   from a regular random number generator, and how
   getentropy/getrandom are not exactly a CSPRNG.  I tried not to make
   specific falsifiable claims here.  I also tried to make the
   blocking/cancellation/error behavior of both getentropy and
   getrandom clearer.
</content>
</entry>
<entry>
<title>2016-05-30  Paul Pluzhnikov  &lt;ppluzhnikov@google.com&gt;</title>
<updated>2016-05-30T22:32:09Z</updated>
<author>
<name>Paul Pluzhnikov</name>
<email>ppluzhnikov@google.com</email>
</author>
<published>2016-05-30T22:32:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=ca7e8dda67490749c38581497f7ec7ffca1c3ba8'/>
<id>urn:sha1:ca7e8dda67490749c38581497f7ec7ffca1c3ba8</id>
<content type='text'>
	[BZ 19653]
	* inet/if_index.c (__protocol_available): Delete #if 0'd code.
	* inet/ruserpass.c (ruserpass): Delete #if 0'd code.
</content>
</entry>
<entry>
<title>inet: Remove SCCS keywords</title>
<updated>2016-04-28T10:53:50Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2016-04-28T09:14:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=283952c4a82b5a9d20932dff1f21148672d33bf4'/>
<id>urn:sha1:283952c4a82b5a9d20932dff1f21148672d33bf4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert 29 more function definitions to prototype style (multiple parameters in one K&amp;R parameter declaration).</title>
<updated>2015-10-20T11:52:27Z</updated>
<author>
<name>Joseph Myers</name>
<email>joseph@codesourcery.com</email>
</author>
<published>2015-10-20T11:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=41075ae3e7f406e67d51da8cc5e89e397710d54b'/>
<id>urn:sha1:41075ae3e7f406e67d51da8cc5e89e397710d54b</id>
<content type='text'>
This automatically-generated patch converts 29 function definitions in
glibc (including one in an example in the manual) from old-style K&amp;R
to prototype-style.  Following my other recent such patches, this one
deals with the case of function definitions where one K&amp;R parameter
declaration declares multiple parameters, as in:

void
foo (a, b)
     int a, *b;
{
}

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

	* crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
	definition.
	(_ufc_doit_r): Likewise.
	* crypt/crypt_util.c (_ufc_copymem): Likewise.
	(_ufc_output_conversion_r): Likewise.
	* inet/inet_mkadr.c (__inet_makeaddr): Likewise.
	* inet/rcmd.c (rcmd_af): Likewise.
	(rcmd): Likewise.
	(ruserok_af): Likewise.
	(ruserok): Likewise.
	(ruserok2_sa): Likewise.
	(ruserok_sa): Likewise.
	(iruserok_af): Likewise.
	(iruserok): Likewise.
	(__ivaliduser): Likewise.
	(__validuser2_sa): Likewise.
	* inet/rexec.c (rexec_af): Likewise.
	(rexec): Likewise.
	* inet/ruserpass.c (ruserpass): Likewise.
	* locale/programs/xmalloc.c (xcalloc): Likewise.
	* manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
	* math/w_drem.c (__drem): Likewise.
	* math/w_dremf.c (__dremf): Likewise.
	* math/w_dreml.c (__dreml): Likewise.
	* misc/daemon.c (daemon): Likewise.
	* resolv/res_debug.c (p_fqnname): Likewise.
	* stdlib/div.c (div): Likewise.
	* string/memcmp.c (memcmp_bytes): Likewise.
	* sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
	* sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
</content>
</entry>
<entry>
<title>Use (void) in no-arguments function definitions.</title>
<updated>2013-06-08T00:22:23Z</updated>
<author>
<name>Joseph Myers</name>
<email>joseph@codesourcery.com</email>
</author>
<published>2013-06-08T00:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca'/>
<id>urn:sha1:60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix leading whitespaces.</title>
<updated>2013-06-06T18:36:07Z</updated>
<author>
<name>Ondrej Bilka</name>
<email>neleai@seznam.cz</email>
</author>
<published>2013-06-06T17:36:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=350635a59a000fa4561d0d8bbe6814b4b9df530c'/>
<id>urn:sha1:350635a59a000fa4561d0d8bbe6814b4b9df530c</id>
<content type='text'>
</content>
</entry>
</feed>
