commit | ec63f6f10a4f549b09b53317da46db2173a3d88e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Nov 09 16:00:51 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Nov 09 16:00:51 2023 +0000 |
tree | 1700ae4709948d4ea4118bb3001fa61b15f7eb4c | |
parent | c3ef20c326eadc3c734971bb46ca93af1a4488ca [diff] | |
parent | d291d68c4c86b06e2f8ca593ad108553323a7d73 [diff] |
Merge "run-as: remove unecessary code." into main
diff --git a/run-as/run-as.cpp b/run-as/run-as.cpp index 9ebe799..e7c6e04 100644 --- a/run-as/run-as.cpp +++ b/run-as/run-as.cpp
@@ -76,9 +76,6 @@ error(1, errno, "couldn't stat %s", path); } - // /data/user/0 is a known safe symlink. - if (strcmp("/data/user/0", path) == 0) return; - // Must be a real directory, not a symlink. if (!S_ISDIR(st.st_mode)) { error(1, 0, "%s not a directory: %o", path, st.st_mode);