Commit ae5ae1b6 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Prevent script from allowing '-r12'

parent be2a8654
......@@ -101,7 +101,7 @@ def main(args):
if rseen:
if args:
return fail("no args allowed with -r option")
if whichfile in "12":
if whichfile in ("1", "2"):
restore(whichfile)
return 1
return fail("-r value must be 1 or 2")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment