tags 361568 + patch kthxbye With the attached patch, libpam-chroot builds. However, I am somewhat dissatisfied with this patch, because it uses alloca. I do not believe that the use of alloca creates any problems; if it did, the variable on the stack would create the same problems.
-- brian m. carlson / brian with sandals: Houston, Texas, US +1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only Screw you, AACS LA: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
diff -ur libpam-chroot.old/pam_chroot.c libpam-chroot-0.9/pam_chroot.c --- libpam-chroot.old/pam_chroot.c 2007-05-19 16:44:08.000000000 +0000 +++ libpam-chroot-0.9/pam_chroot.c 2007-05-19 16:57:36.000000000 +0000 @@ -242,7 +242,7 @@ struct passwd* pwd; gid_t *gids; char **groups; - char scratch[SCRATCH]; + char *scratch=alloca(SCRATCH); pwd = getpwnam(user); if(pwd == NULL) {
signature.asc
Description: Digital signature