diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-07-08 20:51:28 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-07-08 20:51:28 +0200 |
commit | 45ee57fd19d574739d9f92272ba2987f7ebf86e5 (patch) | |
tree | 83023042486fb095e390787da14c016e23f7d889 /fb.py | |
parent | 100bb5729a98e3cebd65d7138fe08630205be762 (diff) |
Fix exception when uploading 0-byte file
This could be triggered by uploading /proc/cpuinfo
The code actually replaces an object with a string and breaks later
access to object variables.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-x | fb.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -603,7 +603,7 @@ class FBClient: return if os.stat(file.path)[6] == 0: - file = self.create_temp_copy(file.path) + file.path = self.create_temp_copy(file.path) if os.path.isdir(file.path): file.path = self.create_tarball(file.path) |