Re: [PATCH] passwd ENABLE_FEATURE_PASSWD_WEAK_CHECK and weak password but still allowed to change passwd.

2018-08-09 Thread Tito
On 09/08/2018 23:47, haroon maqsood wrote: Hi, in case the desired behavior is to allow password change in case of this feature is enabled and password is weak, please ignore my misunderstanding. i think myuid !=0 is an unecessary check as it depends on feature

[PATCH] passwd ENABLE_FEATURE_PASSWD_WEAK_CHECK and weak password but still allowed to change passwd.

2018-08-09 Thread haroon maqsood
Hi, in case the desired behavior is to allow password change in case of this feature is enabled and password is weak, please ignore my misunderstanding. i think myuid !=0 is an unecessary check as it depends on feature ENABLE_FEATURE_PASSWD_WEAK_CHECK not on myuid, why is myuid checked here