]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix check for initial '-' in argv_to_abspath.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 19 Oct 2015 17:24:33 +0000 (18:24 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 25 Jan 2016 15:49:57 +0000 (15:49 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/util/encodingutil.py

index 4eff033abe26385f55c4845945b3a686505eb72a..efd1e218c1306076f5becc4afd0ada1f630a3731 100644 (file)
@@ -95,8 +95,6 @@ def argv_to_unicode(s):
     except UnicodeDecodeError:
         raise usage.UsageError("Argument %s cannot be decoded as %s." %
                                (quote_output(s), io_encoding))
-    if local_dir.startswith('-'):
-        raise usage.UsageError("Argument %s cannot start with a -." % (quote_output(s),))
 
 def argv_to_abspath(s, **kwargs):
     """