syntax fixes
This commit is contained in:
parent
c3e5c8bf30
commit
7194d0ecc6
1 changed files with 3 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ i = 500
|
||||||
name = "a"*i
|
name = "a"*i
|
||||||
begin
|
begin
|
||||||
file = File.new("#{tempdir}/#{name}", "w", "0644").close
|
file = File.new("#{tempdir}/#{name}", "w", "0644").close
|
||||||
File.delete(name)
|
#File.delete(name)
|
||||||
rescue Errno::ENAMETOOLONG
|
rescue Errno::ENAMETOOLONG
|
||||||
i -= 1
|
i -= 1
|
||||||
name = "a"*i
|
name = "a"*i
|
||||||
|
|
@ -317,6 +317,7 @@ rescue Errno::ENAMETOOLONG
|
||||||
end
|
end
|
||||||
i -= 14 # this is how many characters are still likely to be appended
|
i -= 14 # this is how many characters are still likely to be appended
|
||||||
# is the filename already exists '-<#{date}.#{count}>' in save_file
|
# is the filename already exists '-<#{date}.#{count}>' in save_file
|
||||||
|
# this could be brought back to 5 '-<#{count}>' ...
|
||||||
return i
|
return i
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -328,7 +329,7 @@ defaults = parse_options(defaults)
|
||||||
parse_config(defaults)
|
parse_config(defaults)
|
||||||
check_config
|
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 "MAXFILELENGTH: #{@maxfilelength}\n"
|
||||||
|
|
||||||
print "$Id$\n"
|
print "$Id$\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue