]> err.no Git - dpkg/commitdiff
Useless change in uid-parsing
authorWichert Akkerman <wakkerma@debian.org>
Sat, 20 Nov 1999 01:58:39 +0000 (01:58 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Sat, 20 Nov 1999 01:58:39 +0000 (01:58 +0000)
utils/start-stop-daemon.c

index fbbd0dd2da1892ae2f91386b9d9c109df34a6c15..3e739627dc6eeeb165d70fd3ede18f953f934f4f 100644 (file)
@@ -311,12 +311,8 @@ parse_options(int argc, char * const *argv)
                        execname = optarg;
                        break;
                case 'c':  /* --chuid <username>|<uid> */
-                       changeuser = strdup(optarg); /* because we need to modify */
-                       changegroup = strchr(changeuser, ':');
-                       if (changegroup != NULL) {
-                               changegroup[0] = '\0';
-                               changegroup++;
-                       }
+                       changeuser = strtok(optarg, ":");
+                       changegroup = strtok(NULL, ":");
                        break;
                case 'b':  /* --background */
                        background = 1;