projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
495d70e
)
better debugging for htpasswd failure, RT#78179
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 8 Nov 2018 19:31:49 +0000
(11:31 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 8 Nov 2018 19:31:49 +0000
(11:31 -0800)
FS/FS/access_user.pm
patch
|
blob
|
history
diff --git
a/FS/FS/access_user.pm
b/FS/FS/access_user.pm
index
9f4c34d
..
70cef4a
100644
(file)
--- a/
FS/FS/access_user.pm
+++ b/
FS/FS/access_user.pm
@@
-149,7
+149,16
@@
sub htpasswd_kludge {
{
return '';
} else {
- return 'htpasswd exited unsucessfully';
+
+ if ($? == -1) {
+ return "htpasswd failed to execute: $!";
+ } elsif ($? & 127) {
+ return sprintf("htpasswd died with signal %d, %s coredump",
+ ($? & 127), ($? & 128) ? 'with' : 'without' );
+ } else {
+ return sprintf("htpasswd exited with value %d", $? >> 8 );
+ }
+
}
}