summaryrefslogtreecommitdiff
path: root/src/qmail-vmailuser.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/qmail-vmailuser.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/qmail-vmailuser.c')
-rw-r--r--src/qmail-vmailuser.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/qmail-vmailuser.c b/src/qmail-vmailuser.c
index 82cb243..d9de43f 100644
--- a/src/qmail-vmailuser.c
+++ b/src/qmail-vmailuser.c
@@ -21,12 +21,13 @@
#define RESPECT_CASE "-C"
#define BUFFER_SIZE 128
-/** @file qmail-vmailuser.c
- @return 0: virtual user exists
- 1: virtual user dir not accessible
- 2: qmail-vmailuser is misused
- 110: can't read controls
- 111: temporary problem
+/**
+ @file qmail-vmailuser.c
+ @return 0: virtual user exists
+ 1: virtual user dir not accessible
+ 2: qmail-vmailuser is misused
+ 110: can't read controls
+ 111: temporary problem
*/
char inputbuf[BUFFER_SIZE];
@@ -57,7 +58,7 @@ int main(int argc, char **argv)
char ch;
char *homedir = "/home";
- if (argv[1])
+ if (argv[1]) {
if (!case_diffs(argv[1], RESPECT_CASE)) {
flagrespect = 1;
} else {
@@ -65,6 +66,7 @@ int main(int argc, char **argv)
dir = opendir(homedir);
if (!dir) pam_exit(2);
}
+ }
if (argv[2])
if (!case_diffs(argv[2], RESPECT_CASE)) flagrespect = 1;
@@ -89,7 +91,7 @@ int main(int argc, char **argv)
}
close(FDAUTH);
- if ((r = byte_rchr(inputbuf, buflen, '@'))) /* @domain */
+ if ((r = byte_rchr(inputbuf, buflen, '@'))) { /* @domain */
if (r < buflen && inputbuf[r] == '@') {
domain = inputbuf + r + 1;
domlen = str_len(domain);
@@ -98,6 +100,7 @@ int main(int argc, char **argv)
else
case_lowerb(domain, domlen);
}
+ }
vdomuser = constmap(&mapvdoms, domain, domlen);
if (!vdomuser) pam_exit(1);