From 8695d5aec49ac1145120cf19a0b6d97a6e09b48b Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Fri, 19 Nov 1999 00:42:05 +0000 Subject: [PATCH] Changed start-stop-daemon's --chuid user/group seperator to ':' --- utils/start-stop-daemon.8 | 4 ++-- utils/start-stop-daemon.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/start-stop-daemon.8 b/utils/start-stop-daemon.8 index b6468280..71bed3ec 100644 --- a/utils/start-stop-daemon.8 +++ b/utils/start-stop-daemon.8 @@ -123,8 +123,8 @@ Do not print informational messages; only display error messages. .TP .I -c|--chuid Change to this username/uid before starting the process. You can also -specify a group by appending a '.', then the group or gid in the same way -as you would for the `chown' command (user.group). When using this option +specify a group by appending a ':', then the group or gid in the same way +as you would for the `chown' command (user:group). When using this option you must realize that the primary and suplimental groups are set as well, even if the `group' options is not specified. The group option is only for groups that the user isn't normally a member of (like adding per/process diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index faf0ed5a..fbbd0dd2 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -172,7 +172,7 @@ Usage: Options (at least one of --exec|--pidfile|--user is required): -x|--exec program to start/check if it is running\n\ -p|--pidfile pid file to check\n\ - -c|--chuid + -c|--chuid change to this user/group before starting process\n\ -u|--user | stop processes owned by this user\n\ -n|--name stop processes with this name\n\ @@ -312,7 +312,7 @@ parse_options(int argc, char * const *argv) break; case 'c': /* --chuid | */ changeuser = strdup(optarg); /* because we need to modify */ - changegroup = strchr(changeuser, '.'); + changegroup = strchr(changeuser, ':'); if (changegroup != NULL) { changegroup[0] = '\0'; changegroup++; -- 2.39.5