about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-18 01:17:17 +0200
committerhut <hut@lavabit.com>2009-06-18 01:17:17 +0200
commitc747b1f7d103018291d83a03eec29a9ad3e54ed6 (patch)
treed07f999051d5732cd211ab18ace3374ac27a104a
parent8855544ded5a6406b7ad3cb837ec22adc91f55ae (diff)
downloadranger-c747b1f7d103018291d83a03eec29a9ad3e54ed6.tar.gz
fix minor bugs
-rw-r--r--code/entry.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/entry.rb b/code/entry.rb
index 0582c280..d85d58a4 100644
--- a/code/entry.rb
+++ b/code/entry.rb
@@ -4,7 +4,7 @@ class Directory::Entry
 	# Let's just cache every shit, because i don't want
 	# to call File methods all the time
 
-	BAD_TIME = Time.at(0)
+	BAD_TIME = Time.at(1)
 	MIMETYPES = Marshal.load(File.read(
 		File.join(MYDIR, 'data', 'mime.dat')))
 
@@ -27,9 +27,10 @@ class Directory::Entry
 			@basename = File.basename(dirname)
 		end
 		@name, @ext = @basename.split_at_last_dot
+		@ext = @ext.downcase
 		@size = 0
 		@exists = false
-		@rights = '----------'
+		@rights = '--unread--'
 		@readlink = ''
 		@symlink = false
 		@writable = false