httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51370] htdigest should accept password as a command-line argument
Date Tue, 14 Jun 2011 18:12:23 GMT

--- Comment #4 from Philip <> 2011-06-14 18:12:23 UTC ---
Igor, thanks for the feedback.  Why don't you like the patch?  The biggest
reason I don't do what 'htpasswd' does is that I haven't ever used 'htpasswd';
I didn't know it accepts passwords on the command line!  I suppose that's the
strongest reason why 'htdigest' should also.

I see why 'htpasswd' requires the '-b' argument -- because the filename is
optional, and '-b' helps to disambiguate.  This is not a problem for
'htdigest', since a file argument is mandatory.  We can unambiguously determine
whether the user provided a password or not.

The bigger picture is that both programs use a non-standard format for
command-line arguments.  I'd expect the "flag or flag-followed-by-parameter"
format, the format supported by Python's getopt library.  If we're willing to
break backward compatibility, I'll happily adapt both programs to use libc's
getopt or similar.  (Is there an APR replacement?)

What do you think?

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message