diff --git a/pdf-sign b/pdf-sign index 5eb3199..56d2a36 100755 --- a/pdf-sign +++ b/pdf-sign @@ -19,6 +19,9 @@ def main(args): filePath=args.input if not isPdfFilename(filePath): die("Input file must end with .pdf (case insensitive)") + if filePath.startswith('-'): + # A cheap solution to a rare problem + die("Input file may not start with a dash (-)") with tempfile.TemporaryDirectory() as tempdir: intmp=lambda fileName: Volatile(os.path.join(tempdir, fileName)) # Maybe flatten (make forms non-editable) before signing