diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 263a1c1..442ce14 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -951,7 +951,7 @@ static void mb2_handle_make_directory(plist_t message, const char *backup_dir) | |||
| 951 | gchar *newpath = g_build_path(G_DIR_SEPARATOR_S, backup_dir, str, NULL); | 951 | gchar *newpath = g_build_path(G_DIR_SEPARATOR_S, backup_dir, str, NULL); |
| 952 | g_free(str); | 952 | g_free(str); |
| 953 | 953 | ||
| 954 | if (mkdir(newpath, 0755) < 0) { | 954 | if (g_mkdir_with_parents(newpath, 0755) < 0) { |
| 955 | errdesc = strerror(errno); | 955 | errdesc = strerror(errno); |
| 956 | if (errno != EEXIST) { | 956 | if (errno != EEXIST) { |
| 957 | printf("mkdir: %s (%d)\n", errdesc, errno); | 957 | printf("mkdir: %s (%d)\n", errdesc, errno); |
