diff --git a/dedupe/dedupe.c b/dedupe/dedupe.c index ed11491..1960069 100644 --- a/dedupe/dedupe.c +++ b/dedupe/dedupe.c @@ -297,7 +297,8 @@ int main(int argc, char** argv) { symlink(link, filename); - chmod(filename, mode_oct); + // Android has no lchmod, and chmod follows symlinks + //chmod(filename, mode_oct); lchown(filename, uid_int, gid_int); } else if (strcmp(type, "d") == 0) { @@ -308,6 +309,10 @@ int main(int argc, char** argv) { chmod(filename, mode_oct); chown(filename, uid_int, gid_int); } + else { + fprintf(stderr, "Unknown type %s\n", type); + return 1; + } } fclose(input_manifest);