summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-10 05:46:55 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-10 05:46:55 +0000
commit2c9725d82bf7a338608cae538d63e07a3413fa19 (patch)
tree35c5a51974a6444999bb19b65551271c716e48f4 /ext
parent49d22df5bac49cef90757a9bb3acc387c82529b5 (diff)
downloadruby-2c9725d82bf7a338608cae538d63e07a3413fa19.tar.gz
ruby-2c9725d82bf7a338608cae538d63e07a3413fa19.tar.xz
ruby-2c9725d82bf7a338608cae538d63e07a3413fa19.zip
commit miss...
* sample/tkextlib/treectrl/explorer.rb: File.executable? returns true even if it's plain text file. (this function only checks access right) again. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/sample/tkextlib/treectrl/explorer.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/explorer.rb b/ext/tk/sample/tkextlib/treectrl/explorer.rb
index b384fb7c8..242777cbc 100644
--- a/ext/tk/sample/tkextlib/treectrl/explorer.rb
+++ b/ext/tk/sample/tkextlib/treectrl/explorer.rb
@@ -144,11 +144,7 @@ def demoExplorerDetails(t)
when '.txt'
img = 'small-txt'
else
- if FileTest.executable?(file)
- img = 'small-exe'
- else
- img = 'small-file'
- end
+ img = 'small-file'
end
type = ext.upcase