diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 19:03:41 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 19:03:41 +0000 |
| commit | 7d8cc6729f3fcf5fb4c38936179b2c0b9b026130 (patch) | |
| tree | 32f2cf0c9bdb787dfefab865843f41b06a6ae516 /pw/pw.h | |
| parent | 8af1e4400ed08ccdd415de9e187cc030f77412fd (diff) | |
| download | pw-darwin-7d8cc6729f3fcf5fb4c38936179b2c0b9b026130.tar.gz pw-darwin-7d8cc6729f3fcf5fb4c38936179b2c0b9b026130.zip | |
Refactor input validation
Mutualize code to validate inputs of both 'user' and 'group' command
Test that the input name fits into MAXLOGNAME
Diffstat (limited to 'pw/pw.h')
| -rw-r--r-- | pw/pw.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,8 +82,8 @@ int write_userconfig(char const * file); struct carg *addarg(struct cargs * _args, int ch, char *argstr); struct carg *getarg(struct cargs * _args, int ch); -int pw_user(int mode, struct cargs * _args); -int pw_group(int mode, struct cargs * _args); +int pw_user(int mode, char *name, long id, struct cargs * _args); +int pw_group(int mode, char *name, long id, struct cargs * _args); char *pw_checkname(char *name, int gecos); int addnispwent(const char *path, struct passwd *pwd); |
