httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51370] htdigest should accept password as a command-line argument
Date Tue, 14 Jun 2011 18:12:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51370

--- Comment #4 from Philip <pmw+apache@qnan.org> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message