diff options
author | hut <hut@lavabit.com> | 2010-06-09 13:23:27 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-06-09 13:31:26 +0200 |
commit | 39bf5e5a4d927c7eaf0eef0de9fd66757e8e23c5 (patch) | |
tree | 96999bd6f676d0a5eeeb6effb629b4c4bcde0d55 /ranger | |
parent | acf16d12e99a2543ef9f87c0bd9c9a7c77c0f90b (diff) | |
download | ranger-39bf5e5a4d927c7eaf0eef0de9fd66757e8e23c5.tar.gz |
fsobject.file: blacklist /proc/kcore for previewing
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/file.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/fsobject/file.py b/ranger/fsobject/file.py index 2619fa35..0debb44c 100644 --- a/ranger/fsobject/file.py +++ b/ranger/fsobject/file.py @@ -82,6 +82,8 @@ class File(FileSystemObject): return True if PREVIEW_BLACKLIST.search(self.basename): return False + if self.path == '/dev/core' or self.path == '/proc/kcore': + return False if self.extension not in ('zip',) and self.is_binary(): return False return True |