syntax fixes

This commit is contained in:
Ward Wouts 2002-07-31 07:48:33 +00:00
parent c3e5c8bf30
commit 7194d0ecc6

View file

@ -309,7 +309,7 @@ i = 500
name = "a"*i
begin
file = File.new("#{tempdir}/#{name}", "w", "0644").close
File.delete(name)
#File.delete(name)
rescue Errno::ENAMETOOLONG
i -= 1
name = "a"*i
@ -317,6 +317,7 @@ rescue Errno::ENAMETOOLONG
end
i -= 14 # this is how many characters are still likely to be appended
# is the filename already exists '-<#{date}.#{count}>' in save_file
# this could be brought back to 5 '-<#{count}>' ...
return i
end
@ -328,7 +329,7 @@ defaults = parse_options(defaults)
parse_config(defaults)
check_config
@maxfilelength = get_max_file_length(@config[@config.key[0]]["TEMPDIR"])
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
print "MAXFILELENGTH: #{@maxfilelength}\n"
print "$Id$\n"