diff options
Diffstat (limited to 'tools/ipodpatcher')
-rw-r--r-- | tools/ipodpatcher/ipodpatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipodpatcher/ipodpatcher.c b/tools/ipodpatcher/ipodpatcher.c index 29a5939cea..28cac87c6c 100644 --- a/tools/ipodpatcher/ipodpatcher.c +++ b/tools/ipodpatcher/ipodpatcher.c | |||
@@ -1388,7 +1388,7 @@ int main(int argc, char* argv[]) | |||
1388 | fprintf(stderr,"[ERR] --read-firmware failed.\n"); | 1388 | fprintf(stderr,"[ERR] --read-firmware failed.\n"); |
1389 | } | 1389 | } |
1390 | } else if (action==READ_PARTITION) { | 1390 | } else if (action==READ_PARTITION) { |
1391 | outfile = open(filename,O_CREAT|O_WRONLY|O_BINARY,S_IREAD|S_IWRITE); | 1391 | outfile = open(filename,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,S_IREAD|S_IWRITE); |
1392 | if (outfile < 0) { | 1392 | if (outfile < 0) { |
1393 | perror(filename); | 1393 | perror(filename); |
1394 | return 4; | 1394 | return 4; |