Home | History | Annotate | Download | only in 4.3
History log of /src/lib/libcompat/4.3/ruserpass.c
RevisionDateAuthorComments
 1.11  04-Oct-2024  rillig libc, libcompat: fix lint warning about "effectively discards 'const'"

lib/libc/time/zic.c(2810): warning: call to 'strchr' effectively
discards 'const' from argument [346]

lib/libcompat/4.3/ruserpass.c(145): warning: call to 'strchr'
effectively discards 'const' from argument [346]

No binary change.
 1.10  21-Oct-2003  fvdl branches: 1.10.108;
Don't use NULL to compare against an int.
 1.9  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8  14-Sep-2000  msaitoh check LIBC_SCCS
 1.7  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.6  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.5  04-May-1999  christos - add a comparison to NULL in a conditional.
- cast third argument of strn*() to size_t
- s/FALL THROUGH/FALLTHROUGH/
 1.4  19-Aug-1998  thorpej Add some braces to make egcs happy.
 1.3  06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.2  19-Mar-1998  tv FTP uses ruserpass() differently from that in libcompat. Fix rexec to
recognize that the new ruserpass returns an int (but ignore it for now),
and ruserpass does not accept an acct pointer.
 1.1  19-Mar-1998  tv Add a ruserpass() function to make rexec happy. PR 901 (that's not a typo).
 1.10.108.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed