changeset 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 bf1912d2d6e9
files fuzz/fuzz-common.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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);