lib/shadow.c: my_sgetspent(): Remove dead code
spwd.sp_flag is an unsigned long, which can never be negative. Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
@@ -195,8 +195,6 @@ static struct spwd *my_sgetspent (const char *string)
|
||||
spwd.sp_flag = SHADOW_SP_FLAG_UNSET;
|
||||
else if (str2ul(&spwd.sp_flag, fields[8]) == -1)
|
||||
return 0;
|
||||
else if (spwd.sp_flag < 0)
|
||||
return 0;
|
||||
|
||||
return (&spwd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user