* src/userdel.c: Rename argv to args to avoid nameclash with the

main() parameters.
This commit is contained in:
nekral-guest 2009-04-11 16:52:45 +00:00
parent 3fdefd3e40
commit 42590e062f
2 changed files with 9 additions and 7 deletions

View File

@ -2,6 +2,8 @@
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
if Zflg is set.
* src/userdel.c: Rename argv to args to avoid nameclash with the
main() parameters.
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -799,13 +799,13 @@ int main (int argc, char **argv)
#ifdef WITH_SELINUX
if (is_selinux_enabled () > 0) {
const char *argv[5];
argv[0] = "/usr/sbin/semanage";
argv[1] = "login";
argv[2] = "-d";
argv[3] = user_name;
argv[4] = NULL;
safe_system (argv[0], argv, NULL, 1);
const char *args[5];
args[0] = "/usr/sbin/semanage";
args[1] = "login";
args[2] = "-d";
args[3] = user_name;
args[4] = NULL;
safe_system (args[0], args, NULL, 1);
}
#endif
/*