From 20b85c03e751b4876fa3c92040464e483172b746 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 19:03:11 +0200 Subject: manual format adjustment --- src/qmail-vmailuser.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/qmail-vmailuser.c') 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); -- cgit v1.2.3