]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed symlink flaw in file type detection
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 7 Oct 2013 08:40:53 +0000 (08:40 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 7 Oct 2013 08:40:53 +0000 (08:40 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@2224 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/filesys.rb

index 4f58898b91977a3dbc1695ed3191018b316bc34e..cee9e2213f9fef8766206b7a5b32f130620d8f18 100644 (file)
@@ -61,7 +61,7 @@ class Filesys
       if file == '-'
         ios = STDIN
       else
-        case `file #{file}`
+        case `file -L #{file}`
         when /gzip/
           ios = Zlib::GzipReader.new File.open(file, mode, options)
         when /bzip/