18 lines
608 B
Diff
18 lines
608 B
Diff
--- shadow-4.8.1/src/useradd.c 2022-11-18 13:46:45.884713381 +0100
|
|
+++ shadow-4.8.1/src/useradd.c 2022-11-18 14:41:32.774509203 +0100
|
|
@@ -2085,9 +2085,14 @@
|
|
#endif /* ENABLE_SUBIDS */
|
|
|
|
#ifdef WITH_AUDIT
|
|
+ /*
|
|
+ * Even though we have the ID of the user, we won't send it now
|
|
+ * because its not written to disk yet. After close_files it is
|
|
+ * and we can use the real ID thereafter.
|
|
+ */
|
|
audit_logger (AUDIT_ADD_USER, Prog,
|
|
"adding user",
|
|
- user_name, (unsigned int) user_id,
|
|
+ user_name, AUDIT_NO_ID,
|
|
SHADOW_AUDIT_SUCCESS);
|
|
#endif
|
|
/*
|