Skip to content

Commit

Permalink
Merge branch 'master' of ssh://scm.sra.uni-hannover.de/source/cHash
Browse files Browse the repository at this point in the history
  • Loading branch information
lfueracker committed Oct 2, 2017
2 parents 737691a + 7185106 commit ffc24f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wrappers/gcc-fpr.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if __name__ == "__main__":
objectfile = args[args.index("-o")+1]
if os.path.exists(objectfile):
objectfile_data = open(objectfile,'rb').read()
objectfile_fpr = hashlib.md5(objectfile_data).hexdigest()
xattr.setxattr(objectfile, 'user.fprmd5', objectfile_fpr.encode('ascii'))
xattr.setxattr(objectfile, 'user.fprtime', time.time().hex().encode('ascii'))
objectfile_fpr = hashlib.md5(objectfile_data).hexdigest()+'\0'
xattr.setxattr(objectfile, 'user.fingerprint', objectfile_fpr.encode('ascii'))
time_str = str(time.time())+'\0'
xattr.setxattr(objectfile, 'user.fpr_time', time_str.encode('ascii'))
sys.exit(retcode)

0 comments on commit ffc24f1

Please sign in to comment.