diff options
| author | 2011-04-28 00:44:34 +0200 | |
|---|---|---|
| committer | 2011-04-28 00:44:34 +0200 | |
| commit | de9cd870f92abe194904291887828fff9401d020 (patch) | |
| tree | 9c05da0b860cf469ff6b00694c470d05851a1001 /tools/idevicebackup2.c | |
| parent | 2f90d1d1c347b547219a5da5eff2557b07ce5323 (diff) | |
| download | libimobiledevice-de9cd870f92abe194904291887828fff9401d020.tar.gz libimobiledevice-de9cd870f92abe194904291887828fff9401d020.tar.bz2 | |
idevicebackup2: Use g_mkdir_with_parents() for "creating directory" handler
Diffstat (limited to 'tools/idevicebackup2.c')
| -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); |
