summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-26 16:05:38 +0200
committerGravatar Martin Szulecki2011-04-26 16:05:38 +0200
commitd46fe8186ceba38b4f3eddd4b9d01a57fd777f22 (patch)
tree7085effc2ae6307ba0924bf0c7332c15232f8d17
parent73382f3a0303d3982183140c627b4f2409206ad7 (diff)
downloadlibimobiledevice-d46fe8186ceba38b4f3eddd4b9d01a57fd777f22.tar.gz
libimobiledevice-d46fe8186ceba38b4f3eddd4b9d01a57fd777f22.tar.bz2
idevicebackup4: Remove disturbing error message if stat could not find a file
-rw-r--r--tools/idevicebackup4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index 4aa0d46..0d18338 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -548,7 +548,8 @@ static int mb2_handle_send_file(const char *backup_dir, const char *path, plist_
}
if (stat(localfile, &fst) < 0) {
- printf("%s: stat failed on '%s': %d\n", __func__, localfile, errno);
+ if (errno != ENOENT)
+ printf("%s: stat failed on '%s': %d\n", __func__, localfile, errno);
errcode = errno;
goto leave;
}