You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jean-Michel Vourgère <jm...@nirgal.com> on 2013/08/08 17:55:08 UTC

htdigest -c inconsistencies

Dear httpd developers

My previous attempt [1] to bring your attention to that tiny issue did't
really bring a flood of answers. ;)

Bug summary:
* man says htdigest -c will truncate file.
* htdigest -c does not truncate file like it used to, since "some time" [2].

I can think of 3 options:

Option 1:
Fix htdigest to revert the regression^Wchange introduced. Patch here. [3]
=> File truncated as documented

Option 2:
Acknowledge the change, and fix the documentation.
=> File created or appended as needed

Option 3:
Bail out if file exists. This was suggested by some users. This mitigate the
risk of data loss, if we consider -c behavior has been in the wild for some
time now.
=> Bail out if file exists


Full bug report is here [4].

What do you think should be done?


Thank you!


[1] https://mail-archives.apache.org/mod_mbox/httpd-dev/201202.mbox/%3C201202051352.41527.jmv_deb@nirgal.com%3E
[2] https://svn.apache.org/viewvc/httpd/httpd/trunk/support/htdigest.c?r1=85063&r2=85064
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=12;filename=564722.diff;att=1;bug=564722
[4] https://issues.apache.org/bugzilla/show_bug.cgi?id=55379