1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/testsuite/nsswitch
Slava Semushin 3f5403220f testsuite/nsswitch/get{gr,pw}ent_r.c(dump_{gr,pw}ent): fixed wrong condition.
When fopen() fails it return NULL, so condition where return value
less than zero never evaluated to truth.

Found by cppcheck.
2009-06-06 22:45:02 +02:00
..
bigfd.c
bigfd.exp
domusers.exp
envvar.exp
finger.exp
getent_grent.c
getent_pwent.c
getent_r.sh
getent.c
getent.exp
getgrent_r.c
getgrent_r.exp
getgrgid.c
getgrgid.exp
getgrnam.c
getgrnam.exp
getpwent_r.c
getpwent_r.exp
getpwnam.c
getpwnam.exp
getpwuid.c
getpwuid.exp
groupmem_dom.exp
initgroups.c
initgroups.exp
login.exp
longarg_getgrnam.c
longarg_getpwnam.c
longarg_utils.h
longarg.exp
Makefile.longarg
nss_winbind_syms.c
nss_winbind_syms.exp
pam_winbind_syms.c
pam_winbind_syms.exp
wbinfo.exp