chiark
/
gitweb
/
~ijackson
/
d.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
40e9e10
)
fix ADDR message for undefined $dom
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Sep 2013 20:52:26 +0000
(21:52 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 Sep 2013 20:52:26 +0000
(21:52 +0100)
service
patch
|
blob
|
history
diff --git
a/service
b/service
index d9ca7e3bf5ae26867088d42b9dab1cf35c7283ba..196152f26722f6863c4d45b9b632669cc340a3be 100755
(executable)
--- a/
service
+++ b/
service
@@
-329,8
+329,9
@@
if (defined $ENV{'USERV_USER'}) {
$user = ((getpwuid $<)[0]) or die;
}
$user = ((getpwuid $<)[0]) or die;
}
-$usage2 .= "ADDR may be a local part, implicitly qualified with \@$dom\n"
- if defined $qualdom;
+$usage2 .= defined $dom
+ ? "ADDR may be a local part, implicitly qualified with \@$dom\n"
+ : "ADDR must be a local part (only)\n";
$usage2 .= "REDIRECT is implicitly qualified with \@$qualdom if it has no \@\n"
if defined $qualdom;
$usage2 .= "REDIRECT is implicitly qualified with \@$qualdom if it has no \@\n"
if defined $qualdom;