[Bug 1568] New: ssh-rand-helper ignores incorrect command line arguments

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Mar 9 22:21:38 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1568

           Summary: ssh-rand-helper ignores incorrect command line
                    arguments
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: ssh-rand-helper
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: gson at araneus.fi


Created an attachment (id=1611)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1611)
Patch

If you mistakenly run the command

  ssh-rand-helper 256

expecting it to return 256 bytes of output, ssh-rand-helper silently
ignores the error on the command line and returns 48 bytes of output.
It would be helpful to get an usage message in this case.

Also, if you enter an illegal command line option, say,

  ssh-rand-helper -z

ssh-rand-helper does print a usage message, but it will otherwise
ignore the error and will return an exit status of zero.  It would
seem more prudent to treat this as a fatal error.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list