summaryrefslogtreecommitdiffstats
path: root/src/shared/user-record-nss.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-23 22:07:05 +0200
committerLennart Poettering <lennart@poettering.net>2024-10-24 10:17:35 +0200
commit9bbc424a60ccf7c71e0d9071d3fc3ff32dd70402 (patch)
tree0f79df4fd615a7cce73c70e3286c0ac0e2f13c7f /src/shared/user-record-nss.c
parentuserdbctl: set shell/home cell type to TABLE_PATH (diff)
downloadsystemd-9bbc424a60ccf7c71e0d9071d3fc3ff32dd70402.tar.xz
systemd-9bbc424a60ccf7c71e0d9071d3fc3ff32dd70402.zip
user-record: fix indentation
Diffstat (limited to '')
-rw-r--r--src/shared/user-record-nss.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/shared/user-record-nss.c b/src/shared/user-record-nss.c
index a37957ee96..9223a2e6ca 100644
--- a/src/shared/user-record-nss.c
+++ b/src/shared/user-record-nss.c
@@ -104,37 +104,37 @@ int nss_passwd_to_user_record(
* just a password instead of the whole account, but that's mostly pointless in times of
* password-less authorization, hence let's not bother. */
- SET_IF(hr->locked,
- spwd && spwd->sp_expire >= 0,
- spwd->sp_expire <= 1, -1);
+ SET_IF(hr->locked,
+ spwd && spwd->sp_expire >= 0,
+ spwd->sp_expire <= 1, -1);
- SET_IF(hr->not_after_usec,
- spwd && spwd->sp_expire > 1 && (uint64_t) spwd->sp_expire < (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_expire * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->not_after_usec,
+ spwd && spwd->sp_expire > 1 && (uint64_t) spwd->sp_expire < (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_expire * USEC_PER_DAY, UINT64_MAX);
- SET_IF(hr->password_change_now,
- spwd && spwd->sp_lstchg >= 0,
- spwd->sp_lstchg == 0, -1);
+ SET_IF(hr->password_change_now,
+ spwd && spwd->sp_lstchg >= 0,
+ spwd->sp_lstchg == 0, -1);
- SET_IF(hr->last_password_change_usec,
- spwd && spwd->sp_lstchg > 0 && (uint64_t) spwd->sp_lstchg <= (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_lstchg * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->last_password_change_usec,
+ spwd && spwd->sp_lstchg > 0 && (uint64_t) spwd->sp_lstchg <= (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_lstchg * USEC_PER_DAY, UINT64_MAX);
- SET_IF(hr->password_change_min_usec,
- spwd && spwd->sp_min > 0 && (uint64_t) spwd->sp_min <= (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_min * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->password_change_min_usec,
+ spwd && spwd->sp_min > 0 && (uint64_t) spwd->sp_min <= (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_min * USEC_PER_DAY, UINT64_MAX);
- SET_IF(hr->password_change_max_usec,
- spwd && spwd->sp_max > 0 && (uint64_t) spwd->sp_max <= (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_max * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->password_change_max_usec,
+ spwd && spwd->sp_max > 0 && (uint64_t) spwd->sp_max <= (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_max * USEC_PER_DAY, UINT64_MAX);
- SET_IF(hr->password_change_warn_usec,
- spwd && spwd->sp_warn > 0 && (uint64_t) spwd->sp_warn <= (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_warn * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->password_change_warn_usec,
+ spwd && spwd->sp_warn > 0 && (uint64_t) spwd->sp_warn <= (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_warn * USEC_PER_DAY, UINT64_MAX);
- SET_IF(hr->password_change_inactive_usec,
- spwd && spwd->sp_inact > 0 && (uint64_t) spwd->sp_inact <= (UINT64_MAX-1)/USEC_PER_DAY,
- spwd->sp_inact * USEC_PER_DAY, UINT64_MAX);
+ SET_IF(hr->password_change_inactive_usec,
+ spwd && spwd->sp_inact > 0 && (uint64_t) spwd->sp_inact <= (UINT64_MAX-1)/USEC_PER_DAY,
+ spwd->sp_inact * USEC_PER_DAY, UINT64_MAX);
hr->json = sd_json_variant_unref(hr->json);
r = sd_json_buildo(