Lines Matching refs:getpwnam
27 # This test checks whether ksh93 does unneccesaty |libc::getpwnam()|
30 # This was reported as CR #6807179 ("ksh93 does unneccesary |libc::getpwnam()| lookups for ~(modifier) pattern patterns"):
32 # ksh93 does unneccesary |libc::getpwnam()| lookups for
39 # and this code calls |libc::getpwnam()|) which shouldn't be
67 # test 1: Check if the shell uses |libc::getpwnam()| for pattern "~(Elr)wo.*ld"
69 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for pattern ~(Elr)wo.*ld"
73 # test 2: Check if the shell uses |libc::getpwnam()| for pattern "~(Si)wo*ld"
75 [[ "$( < "${tmpfile}")" != *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for pattern ~(Si)wo*ld"
79 # test 3: Same as test 1 but uses ~root/ as pattern which will force the use of |libc::getpwnam()|
83 [[ "$( < "${tmpfile}" )" == *getpwnam* ]] || err_exit "truss log reports the use of getpwnam() for pattern ~root/"