remove trailing whitespace

This commit is contained in:
Michel Oosterhof
2015-06-23 08:20:38 +00:00
parent 4d48992305
commit 56477389b8
11 changed files with 54 additions and 49 deletions

View File

@@ -219,9 +219,14 @@ class HoneyPotFilesystem(object):
# log.msg("fs.open excl") # log.msg("fs.open excl")
# treat O_RDWR same as O_WRONLY # treat O_RDWR same as O_WRONLY
print "mode = %s\n" % repr(mode)
if openFlags & os.O_WRONLY == os.O_WRONLY or openFlags & os.O_RDWR == os.O_RDWR: if openFlags & os.O_WRONLY == os.O_WRONLY or openFlags & os.O_RDWR == os.O_RDWR:
# ensure we do not save with executable bit set # ensure we do not save with executable bit set
realmode = mode & ~(stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH) realmode = mode & ~(stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
realmode = realmode | stat.S_IRUSR
print "realmode = %s\n" % repr(mode)
#log.msg("fs.open wronly") #log.msg("fs.open wronly")
tempfile = '%s/%s_%s' % \ tempfile = '%s/%s_%s' % \