update to printf

This commit is contained in:
Michel Oosterhof 2017-06-04 10:58:29 +00:00
parent 7c0ab33490
commit 70f6ef861d
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class command_printf(HoneyPotCommand):
def call(self): def call(self):
if not len(self.args): if not len(self.args):
self.write('printf: usage: printf [-v var] format [arguments]') self.write('printf: usage: printf [-v var] format [arguments]\n')
else: else:
if '-v' not in self.args: if '-v' not in self.args:
if len(self.args) < 2: if len(self.args) < 2:
@ -166,6 +166,7 @@ class command_printf(HoneyPotCommand):
commands['printf'] = command_printf commands['printf'] = command_printf
commands['/usr/bin/printf'] = command_printf
class command_exit(HoneyPotCommand): class command_exit(HoneyPotCommand):