From 9307edbf71eed46dba7d44b6eecc6b5fd61c53d9 Mon Sep 17 00:00:00 2001 From: Brendan Malone <46428809+RoundBunny@users.noreply.github.com> Date: Thu, 30 Jun 2022 13:39:29 -0500 Subject: [PATCH] Update chown.c --- atomics/T1222.002/src/chown.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/atomics/T1222.002/src/chown.c b/atomics/T1222.002/src/chown.c index 868ba90f..2beb8081 100644 --- a/atomics/T1222.002/src/chown.c +++ b/atomics/T1222.002/src/chown.c @@ -1,21 +1,14 @@ -// -// main.c -// T1222.002own -// -// Created by bam on 6/27/22. -// - #include #include #include int main(int argc, const char * argv[]) { - // insert code here... if (argc < 2) { printf("usage: %s \n", argv[0]); return 2; } + //change user and group to root const char *filepath = argv[1]; int rv = chown(filepath, 0, 0); if (0 != rv) {