fix up symlinks and lack of lchmod
Change-Id: Iccfddabe239b97a20b0b5302af4488482fffd86b
This commit is contained in:
parent
7f3a8c90b0
commit
24c802b05e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user