fix for cd to non-existing directory

This commit is contained in:
Michel Oosterhof
2015-09-27 05:07:38 +00:00
parent e8e604b908
commit c4b754ea41

View File

@@ -135,7 +135,7 @@ class command_cd(HoneyPotCommand):
if path == "-":
self.writeln('bash: cd: OLDPWD not set')
return
if inode is None:
if inode is None or inode is False:
self.writeln('bash: cd: %s: No such file or directory' % path)
return
if inode[A_TYPE] != T_DIR: