#include <string.h>
#include <unistd.h>
#include <fcntl.h>
+#include <limits.h>
#include <sys/stat.h>
#include "../src/guestfs_protocol.h"
free (sysrootdir);
return NULL;
}
+ free (sysrootdir);
if (verbose)
fprintf (stderr, "%s\n", cmd);
sort_strings (res, size-1);
- return res; /* caller frees */
+ return res; /* caller frees */
}
/* The code below assumes each path returned can fit into a protocol
if (ferror (fp)) {
perror (dir);
- send_file_end (1); /* Cancel. */
+ send_file_end (1); /* Cancel. */
pclose (fp);
return -1;
}
if (pclose (fp) != 0) {
perror (dir);
- send_file_end (1); /* Cancel. */
+ send_file_end (1); /* Cancel. */
return -1;
}
- if (send_file_end (0)) /* Normal end of file. */
+ if (send_file_end (0)) /* Normal end of file. */
return -1;
return 0;
}
-