diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index 0672f57..db6f247 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -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"