Iker Pedrosa
16afe18142
Raise limit for passwd and shadow entry length
...
Moreover, include checks to prevent writing entries longer than the
length limit.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1422497
Signed-off-by: Tomáš Mráz <tm@t8m.info>
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2022-10-14 10:41:40 +02:00
Iker Pedrosa
0b51cde162
Remove commented out code and FIXMEs
...
In order to remove some of the FIXMEs it was necessary to change the
code and call getulong() instead of getlong().
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
2022-05-24 07:49:11 -05:00
Serge Hallyn
f93cf255d4
Update licensing info
...
Closes #238
Update all files to list SPDX license shortname. Most files are
BSD 3 clause license.
The exceptions are:
serge@sl ~/src/shadow$ git grep SPDX-License | grep -v BSD-3-Clause
contrib/atudel:# SPDX-License-Identifier: BSD-4-Clause
lib/tcbfuncs.c: * SPDX-License-Identifier: 0BSD
libmisc/salt.c: * SPDX-License-Identifier: Unlicense
src/login_nopam.c: * SPDX-License-Identifier: Unlicense
src/nologin.c: * SPDX-License-Identifier: BSD-2-Clause
src/vipw.c: * SPDX-License-Identifier: GPL-2.0-or-later
Signed-off-by: Serge Hallyn <serge@hallyn.com>
2021-12-23 19:36:50 -06:00
Michael Vetter
8eee5d03fd
Remove unused variable 'cpp'
2020-04-25 12:10:39 +02:00
nekral-guest
b5200cf753
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
2009-04-10 22:35:07 +00:00
nekral-guest
686ac847aa
Revert " * lib/sgetspent.c: Removed (is not used / compiled) anymore."
...
This reverts commit dbeb402f0b0befd8c48b68d53277e1bd1b5f751b.
2009-04-10 22:35:01 +00:00
nekral-guest
e075442345
* lib/sgetspent.c: Removed (is not used / compiled) anymore.
2009-04-10 22:34:55 +00:00
nekral-guest
c7258f22d8
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
...
issues in a numerical shadow entry field.
2009-04-10 22:34:49 +00:00
nekral-guest
92143eb7b9
* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
...
value of spwd.sp_flag.
2008-06-13 21:36:41 +00:00
nekral-guest
9e31065b5e
* lib/sgetspent.c: Add brackets and parenthesis.
...
* lib/sgetspent.c: Avoid assignments in comparisons.
* lib/sgetspent.c: Avoid implicit conversion of pointers / chars to booleans.
* lib/sgetspent.c: Avoid multi-statements lines.
2008-05-26 09:39:29 +00:00
nekral-guest
c7302b61ef
Make sure every source files are distributed with a copyright and license.
...
Files with no license use the default 3-clauses BSD license. The copyright
were mostly not recorded; they were updated according to the Changelog.
"Julianne Frances Haugh and contributors" changed to "copyright holders
and contributors".
2008-04-27 00:40:09 +00:00
nekral-guest
b2120265fd
Added the subversion svn:keywords property (Id) for proper identification.
2007-11-10 23:46:11 +00:00
nekral-guest
79bf2081fe
Commit the last version from the PLD CVS repository.
...
(last changelog entry: 2007-02-01)
This also adds the files which were present in the CVS repository, but not
present in the shadow archives.
2007-10-07 14:36:51 +00:00
nekral-guest
3bc4996775
[svn-upgrade] Integrating new upstream version, shadow (4.0.0)
2007-10-07 11:44:51 +00:00
nekral-guest
45c6603cc8
[svn-upgrade] Integrating new upstream version, shadow (19990709)
2007-10-07 11:44:02 +00:00