diff fuzz/fuzz-common.c @ 1780:b5aedadc0008

fuzzing - Set postauth user to root since that's what it runs as
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Nov 2020 19:28:11 +0800
parents 36d4c027cba7
children a6da10ac64b5
line wrap: on
line diff
--- a/fuzz/fuzz-common.c	Mon Nov 16 22:44:30 2020 +0800
+++ b/fuzz/fuzz-common.c	Tue Nov 17 19:28:11 2020 +0800
@@ -262,8 +262,7 @@
 
     if (authdone) {
         ses.authstate.authdone = 1;
-        char *me = fuzz_getpwuid(getuid())->pw_name;
-        fill_passwd(me);
+        fill_passwd("root");
     }
 
     m_malloc_set_epoch(1);