Ticket #63603: configure-evaluate-bug.diff
File configure-evaluate-bug.diff, 1.4 KB (added by ballapete (Peter "Pete" Dyballa), 3 years ago) |
---|
-
configure
old new 36361 36361 /* end confdefs.h. */ 36362 36362 36363 36363 #include <errno.h> 36364 #include <stdio.h> 36364 36365 #include <stdlib.h> 36365 36366 #if HAVE_UNISTD_H 36366 36367 # include <unistd.h> … … 36434 36435 initial_cwd_len = strlen (cwd); 36435 36436 free (cwd); 36436 36437 36438 FILE *f = fopen ("/var/tmp/sub-dirs-file", "a+"); 36437 36439 if (1) 36438 36440 { 36439 36441 static char const dir_name[] = "confdir-14B---"; … … 36450 36452 break; 36451 36453 } 36452 36454 } 36455 fprintf (f, "Directory tree built!\n"); 36453 36456 36454 36457 /* If libc has the bug in question, this invocation of getcwd 36455 36458 results in a failed assertion. */ … … 36461 36464 36462 36465 /* Call rmdir first, in case the above chdir failed. */ 36463 36466 rmdir (dir_name); 36467 fprintf (f, "Deleting the lates sub-dir, initial_cwd_len is %lu, TARGET_LEN is %lu, dir_name has %lu string length, desired_depth is %lu.\n", initial_cwd_len, TARGET_LEN, (sizeof dir_name), desired_depth); 36464 36468 while (0 < d--) 36465 36469 { 36466 36470 if (chdir ("..") < 0) … … 36468 36472 fail = 5; 36469 36473 break; 36470 36474 } 36471 rmdir (dir_name); 36475 else 36476 { 36477 fprintf (f, "Going to remove %s on level %lu\n", dir_name, d); 36478 rmdir (dir_name); 36479 } 36472 36480 } 36473 36481 } 36474 36482