- replace also other std descriptors (#491471)

This commit is contained in:
Tomáš Mráz 2009-03-26 11:17:16 +00:00
parent 837a5499fa
commit f3a8a94868
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ diff -up Linux-PAM-1.0.91/modules/pam_mkhomedir/pam_mkhomedir.c.std-noclose Linu
+ if (pipe(dummyfds) == 0) { + if (pipe(dummyfds) == 0) {
+ dup2(dummyfds[0], STDIN_FILENO); + dup2(dummyfds[0], STDIN_FILENO);
+ dup2(dummyfds[1], STDOUT_FILENO); + dup2(dummyfds[1], STDOUT_FILENO);
+ dup2(dummyfds[2], STDERR_FILENO); + dup2(dummyfds[1], STDERR_FILENO);
+ } + }
+ +
if (getrlimit(RLIMIT_NOFILE, &rlim)==0) { if (getrlimit(RLIMIT_NOFILE, &rlim)==0) {

View File

@ -315,7 +315,7 @@ fi
%doc doc/adg/*.txt doc/adg/html %doc doc/adg/*.txt doc/adg/html
%changelog %changelog
* Thu Mar 26 2009 Tomas Mraz <tmraz@redhat.com> 1.0.91-4 * Thu Mar 26 2009 Tomas Mraz <tmraz@redhat.com> 1.0.91-5
- replace also other std descriptors (#491471) - replace also other std descriptors (#491471)
* Tue Mar 16 2009 Tomas Mraz <tmraz@redhat.com> 1.0.91-3 * Tue Mar 16 2009 Tomas Mraz <tmraz@redhat.com> 1.0.91-3