Author vajrasky
Recipients akuchling, giampaolo.rodola, loewis, serhiy.storchaka, vajrasky
Date 2013-08-20.14:27:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Attached the patch to raise OSError instead of returning empty list if a normal user uses getspall function of spwd module.

I investigated about this issue. There exists situation where /etc/shadow file does not exist:

So I think it is better to differentiate the result of the function where a normal user trying to access /etc/shadow file (permission denied, therefore should raise exception) or root user trying to access non-existent /etc/shadow file (therefore should get empty list).
Date User Action Args
2013-08-20 14:27:05vajraskysetrecipients: + vajrasky, loewis, akuchling, giampaolo.rodola, serhiy.storchaka
2013-08-20 14:27:05vajraskysetmessageid: <>
2013-08-20 14:27:05vajraskylinkissue10388 messages
2013-08-20 14:27:05vajraskycreate