From ff7fe9ed7310e9426e5056fca19febbacde55401 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 14 May 2015 21:54:05 +0200 Subject: doc bus-chgrp, bus-chown, and bus-chmod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cmdline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cmdline.c b/src/cmdline.c index a80c462..c23d185 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -345,7 +345,7 @@ main(int argc, char *argv[]) /* TODO add -n */ /* Change permissions. */ - } else if ((argc == 4) && !strcmp(argv[1], "chmod")) { /* TODO doc */ + } else if ((argc == 4) && !strcmp(argv[1], "chmod")) { t(parse_mode(argv[2], &mode_andnot, &mode_or)); t(stat(argv[3], &attr)); attr.st_mode &= ~mode_andnot; @@ -353,7 +353,7 @@ main(int argc, char *argv[]) t(bus_chmod(argv[3], attr.st_mode)); /* Change ownership. */ - } else if ((argc == 4) && !strcmp(argv[1], "chown")) { /* TODO doc */ + } else if ((argc == 4) && !strcmp(argv[1], "chown")) { if (strchr(argv[2], ':')) { t(parse_owner(argv[2], &uid, &gid)); t(bus_chown(argv[3], uid, gid)); @@ -364,7 +364,7 @@ main(int argc, char *argv[]) } /* Change group. */ - } else if ((argc == 4) && !strcmp(argv[1], "chgrp")) { /* TODO doc */ + } else if ((argc == 4) && !strcmp(argv[1], "chgrp")) { t(parse_owner(argv[2], NULL, &gid)); t(stat(argv[3], &attr)); t(bus_chown(argv[3], attr.st_uid, gid)); -- cgit v1.2.3-70-g09d2