diff options
author | Nikias Bassen | 2020-11-19 04:30:01 +0100 |
---|---|---|
committer | Nikias Bassen | 2020-11-19 04:30:01 +0100 |
commit | 16a8b97af2d1a4257271208a3b512da884ab4106 (patch) | |
tree | dd0985558c00cead8c21c3c59cd270277552fd5e /tools | |
parent | a8a6c64b4d135e3c8c0411b2571f7bf65d724d8b (diff) | |
download | libimobiledevice-16a8b97af2d1a4257271208a3b512da884ab4106.tar.gz libimobiledevice-16a8b97af2d1a4257271208a3b512da884ab4106.tar.bz2 |
idevicebackup2: Update errno to device error mapping
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicebackup2.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index a9450ae..6412fe2 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -56,6 +56,9 @@ #include <windows.h> #include <conio.h> #define sleep(x) Sleep(x*1000) +#ifndef ELOOP +#define ELOOP 114 +#endif #else #include <termios.h> #include <sys/statvfs.h> @@ -742,8 +745,18 @@ static int errno_to_device_error(int errno_value) return -6; case EEXIST: return -7; + case ENOTDIR: + return -8; + case EISDIR: + return -9; + case ELOOP: + return -10; + case EIO: + return -11; + case ENOSPC: + return -15; default: - return -errno_value; + return -1; } } |