#include <string.h>
#include <sys/stat.h>
+#include "pathmax.h"
#include "macros.h"
#if ! HAVE_GETPAGESIZE
cwd = getcwd (NULL, 0);
if (cwd == NULL)
- return 0;
+ return 2;
initial_cwd_len = strlen (cwd);
free (cwd);
while (0 < d--)
{
if (chdir ("..") < 0)
- break;
+ {
+ fail = 5;
+ break;
+ }
rmdir (dir_name);
}
- return 0;
+ return fail;
}
/* The length of this name must be 8. */