Revision 11321,
338 bytes
checked in by cfields, 27 years ago
(diff) |
Track arg removal from setupUser call.
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | #include "nannylib.h" |
---|
3 | |
---|
4 | int main(int argc, char **argv, char **env) |
---|
5 | { |
---|
6 | int ret; |
---|
7 | char *args[3]; |
---|
8 | |
---|
9 | args[0] = "arg1"; |
---|
10 | args[1] = "arg2"; |
---|
11 | args[2] = NULL; |
---|
12 | |
---|
13 | ret = nanny_setupUser(argv[1] ? argv[1] : "root", env, args); |
---|
14 | if (ret) |
---|
15 | { |
---|
16 | fprintf(stderr, "setupUser failed.\n"); |
---|
17 | exit(1); |
---|
18 | } |
---|
19 | |
---|
20 | exit(0); |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.