Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (13 sloc) 0.341 kb
99d0354 Initial revision
matz authored
1 #! /usr/local/bin/ruby
07bb9f2 1.4.0
matz authored
2
3 path = ENV['PATH'].split(File::PATH_SEPARATOR)
99d0354 Initial revision
matz authored
4
5 for dir in path
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
6 if File.directory?(dir)
99d0354 Initial revision
matz authored
7 for f in d = Dir.open(dir)
6f07df1 Akinori MUSHA Improve.
knu authored
8 fpath = File.join(dir, f)
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
9 if File.file?(fpath) && (File.stat(fpath).mode & 022) != 0
99d0354 Initial revision
matz authored
10 printf("file %s is writable from other users\n", fpath)
11 end
12 end
13 d.close
14 end
15 end
Something went wrong with that request. Please try again.