Debian Codegraph @

build/macosx/permissions/chown_root.c

raw
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include <unistd.h>
6
7 int main(int argc, char** argv) {
8 if (argc != 2) return 1;
9
10 return execl("/usr/sbin/chown", "/usr/sbin/chown", "-R", "-h", "root:admin",
11 argv[1], (char*)0);
12 }