3
path = ENV['PATH'].split(File::PATH_SEPARATOR)
6
if File.directory?(dir)
7
for f in d = Dir.open(dir)
8
fpath = File.join(dir, f)
9
if File.file?(fpath) && (File.stat(fpath).mode & 022) != 0
10
printf("file %s is writable from other users\n", fpath)