Description of problem: strace output looks retarded. 8-) 8321 21:13:18.491461 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=10*1024}) = 0 <0.000011> 8321 21:13:18.491513 close(622) = -1 EBADF (Bad file descriptor) <0.000011> 8321 21:13:18.491564 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=10*1024}) = 0 <0.000011> 8321 21:13:18.491616 close(623) = -1 EBADF (Bad file descriptor) <0.000011> Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. enable pam_xauth.so in some module 2. 3. Actual results: many calls... Expected results: one call... Additional info: after patch: 22233 22:12:56.864605 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=10*1024}) = 0 <0.000013> 22233 22:12:56.864663 close(2) = 0 <0.000013> 22233 22:12:56.864712 close(3) = 0 <0.000014> 22233 22:12:56.864762 close(4) = 0 <0.000013> ...
Created attachment 172581 [details] one call to sysconf is enough
Applied to upstream CVS. Thank you.