aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/rdsquashfs/restore_fstree.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/rdsquashfs/restore_fstree.c b/bin/rdsquashfs/restore_fstree.c
index b9f92fe..ea9d4f1 100644
--- a/bin/rdsquashfs/restore_fstree.c
+++ b/bin/rdsquashfs/restore_fstree.c
@@ -40,11 +40,19 @@ static int create_node(const sqfs_tree_node_t *n, const char *name, int flags)
free(wpath);
return 0;
-fail:
- fprintf(stderr, "Creating %s: %ld\n", name, GetLastError());
+fail: {
+ DWORD err = GetLastError();
free(wpath);
+ SetLastError(err);
+ w32_perror(name);
+
+ if (err == ERROR_FILE_EXISTS) {
+ fputs("\nHINT: this could be caused by case "
+ "sensitivity on Windows.\n", stderr);
+ }
return -1;
}
+}
#else
static int create_node(const sqfs_tree_node_t *n, const char *name, int flags)
{