diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2013-02-27 02:10:16 +0100 |
---|---|---|
committer | bigbiff bigbiff <bigbiff@teamw.in> | 2013-02-27 18:55:40 +0100 |
commit | 71e5aa4eeef3aeab127fa1fd302bf66eedf19acb (patch) | |
tree | bca95635451d77f12b50cf0ca538845d16f51597 /libtar | |
parent | Change version to 2.4.2.0 (diff) | |
download | android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar.gz android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar.bz2 android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar.lz android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar.xz android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.tar.zst android_bootable_recovery-71e5aa4eeef3aeab127fa1fd302bf66eedf19acb.zip |
Diffstat (limited to 'libtar')
-rw-r--r-- | libtar/extract.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libtar/extract.c b/libtar/extract.c index 554428715..8860e5047 100644 --- a/libtar/extract.c +++ b/libtar/extract.c @@ -95,7 +95,7 @@ tar_extract_file(TAR *t, char *realname) char *lnp; int pathname_len; int realname_len; - + if (t->options & TAR_NOOVERWRITE) { struct stat s; @@ -139,13 +139,13 @@ tar_extract_file(TAR *t, char *realname) } if (i != 0) { - printf("here i: %d\n", i); + printf("FAILED RESTORE OF FILE i: %s\n", realname); return i; } i = tar_set_file_perms(t, realname); if (i != 0) { - printf("i: %d\n", i); + printf("FAILED SETTING PERMS: %d\n", i); return i; } /* @@ -346,7 +346,7 @@ int tar_extract_symlink(TAR *t, char *realname) { char *filename; - + if (!TH_ISSYM(t)) { printf("not a sym\n"); @@ -412,9 +412,9 @@ tar_extract_chardev(TAR *t, char *realname) compat_makedev(devmaj, devmin)) == -1) { #ifdef DEBUG - perror("mknod()"); + printf("mknod() failed, returning good anyway"); #endif - return -1; + return 0; } return 0; @@ -451,9 +451,9 @@ tar_extract_blockdev(TAR *t, char *realname) compat_makedev(devmaj, devmin)) == -1) { #ifdef DEBUG - perror("mknod()"); + printf("mknod() failed but returning anyway"); #endif - return -1; + return 0; } return 0; |