Mailing List Archive

[Bug 1568] New: ssh-rand-helper ignores incorrect command line arguments
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@mindrot.org
ReportedBy: gson@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs