summaryrefslogtreecommitdiff
path: root/src/basic/user-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-01-31 16:16:55 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-01 11:38:35 +0100
commitfddb524d8a9fcfbf943c88b5c7d13eba7ac0083d (patch)
tree0461f74fc302a9873184b07215c81e7868e664bb /src/basic/user-util.c
parent7519b880e73859156e4fb64a7db870a9bfb72b9f (diff)
downloadsystemd-fddb524d8a9fcfbf943c88b5c7d13eba7ac0083d.tar.gz
basic: reword some comments
Without commas, the sentences can be hard to parse.
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r--src/basic/user-util.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c
index e2857b3102..3daca626b8 100644
--- a/src/basic/user-util.c
+++ b/src/basic/user-util.c
@@ -681,15 +681,12 @@ int take_etc_passwd_lock(const char *root) {
const char *path;
int fd, r;
- /* This is roughly the same as lckpwdf(), but not as awful. We
- * don't want to use alarm() and signals, hence we implement
- * our own trivial version of this.
+ /* This is roughly the same as lckpwdf(), but not as awful. We don't want to use alarm() and signals,
+ * hence we implement our own trivial version of this.
*
- * Note that shadow-utils also takes per-database locks in
- * addition to lckpwdf(). However, we don't given that they
- * are redundant as they invoke lckpwdf() first and keep
- * it during everything they do. The per-database locks are
- * awfully racy, and thus we just won't do them. */
+ * Note that shadow-utils also takes per-database locks in addition to lckpwdf(). However, we don't,
+ * given that they are redundant: they invoke lckpwdf() first and keep it during everything they do.
+ * The per-database locks are awfully racy, and thus we just won't do them. */
if (root)
path = prefix_roota(root, ETC_PASSWD_LOCK_PATH);