... | ... |
@@ -299,7 +299,7 @@ int main(int argc, char **argv) { |
299 | 299 |
} |
300 | 300 |
|
301 | 301 |
#ifdef HAVE_INITGROUPS |
302 |
- if(initgroups(user->pw_name, user->pw_gid)) { |
|
302 |
+ if(initgroups(opt->strarg, user->pw_gid)) { |
|
303 | 303 |
fprintf(stderr, "ERROR: initgroups() failed.\n"); |
304 | 304 |
optfree(opts); |
305 | 305 |
return 1; |
... | ... |
@@ -217,7 +217,7 @@ int main(int argc, char **argv) |
217 | 217 |
} |
218 | 218 |
|
219 | 219 |
#ifdef HAVE_INITGROUPS |
220 |
- if(initgroups(user->pw_name, user->pw_gid)) { |
|
220 |
+ if(initgroups(opt->strarg, user->pw_gid)) { |
|
221 | 221 |
fprintf(stderr, "ERROR: initgroups() failed.\n"); |
222 | 222 |
optfree(opts); |
223 | 223 |
return 1; |