11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/astrails/safe/tmp_file.rb', line 11
def self.cleanup
begin
FileUtils.remove_entry_secure tmproot
rescue ArgumentError => e
if e.message =~ /parent directory is world writable/
puts <<-ERR
********************************************************************************
It looks like you have wrong permissions on your TEMP directory. The usual
case is when you have world writable TEMP directory withOUT the sticky bit.
Try "chmod +t" on it.
********************************************************************************
ERR
else
raise
end
end
@tmproot = nil
end
|