* src/userdel.c: Rename argv to args to avoid nameclash with the
main() parameters.
This commit is contained in:
parent
3fdefd3e40
commit
42590e062f
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
|
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
|
||||||
if Zflg is set.
|
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>
|
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -799,13 +799,13 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
#ifdef WITH_SELINUX
|
#ifdef WITH_SELINUX
|
||||||
if (is_selinux_enabled () > 0) {
|
if (is_selinux_enabled () > 0) {
|
||||||
const char *argv[5];
|
const char *args[5];
|
||||||
argv[0] = "/usr/sbin/semanage";
|
args[0] = "/usr/sbin/semanage";
|
||||||
argv[1] = "login";
|
args[1] = "login";
|
||||||
argv[2] = "-d";
|
args[2] = "-d";
|
||||||
argv[3] = user_name;
|
args[3] = user_name;
|
||||||
argv[4] = NULL;
|
args[4] = NULL;
|
||||||
safe_system (argv[0], argv, NULL, 1);
|
safe_system (args[0], args, NULL, 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user