bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with directory trees "confdir-14B---" and "confdir3"


From: Peter Dyballa
Subject: Re: Problems with directory trees "confdir-14B---" and "confdir3"
Date: Mon, 18 Mar 2024 19:51:12 +0100

> Am 18.03.2024 um 17:51 schrieb Peter Dyballa <Peter_Dyballa@Web.DE>:
> 
> Usually the test programme returns 3, meaning that it reached the line before 
> /break;/, which is:
> 
> fail = 3; /* Unable to construct deep hierarchy.  */

I have to correct myself! It's my code that I added to the for loop and is 
executed when subdirectory creation succeeds, now out-commented:

//        else
//          {
//            cwd = getcwd (NULL, 0);
//            fprintf (f, "Level %3d, %4d chars long in %s\n", -d - 1, strlen 
(cwd), cwd);
//          }

Obviously fprintf() has a problem printing strings of > 3.5 K length to a file. 
This function caused "fail = 3". Without it the loop reaches d ≈ 340 (and "fail 
= 4"). Later I'll add some fprintf() to the while loop to see how it works. And 
then I'll create first a series of subdirectories with names of varying length 
inside which the confdir-14B--- tree will be created each time. There must be a 
situation that reproduces what we encountered when building the utilities with 
MacPorts!

--

Greetings

  Pete

Almost anything is easier to get into than out of.
                                – Allen's Law




reply via email to

[Prev in Thread] Current Thread [Next in Thread]