check if user is still connected. (#2229)

This commit is contained in:
Michel Oosterhof 2024-07-06 16:19:14 +08:00 committed by GitHub
parent eefdc934a5
commit 5eb6b5d3ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class Command_wget(HoneyPotCommand):
)
# Update the honeyfs to point to artifact file if output is to file
if self.outfile:
if self.outfile and self.protocol.user:
self.fs.mkfile(self.outfile, 0, 0, self.currentlength, 33188)
self.fs.chown(self.outfile, self.protocol.user.uid, self.protocol.user.gid)
self.fs.update_realfile(