]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: rebreak some comments 31319/head
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2024 09:56:09 +0000 (10:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2024 10:00:18 +0000 (11:00 +0100)
src/journal/journald-native.c

index 315ec0b51307f994a326f19bd58a2db0a5284285..75d9082abfc014db482a69c45f3985b532c48b5e 100644 (file)
@@ -376,8 +376,8 @@ void server_process_native_file(
                 _cleanup_free_ char *k = NULL;
                 const char *e;
 
-                /* If this is not a sealed memfd, and the peer is unknown or
-                 * unprivileged, then verify the path. */
+                /* If this is not a sealed memfd, and the peer is unknown or unprivileged, then verify the
+                 * path. */
 
                 r = fd_get_path(fd, &k);
                 if (r < 0) {
@@ -437,8 +437,7 @@ void server_process_native_file(
                         return;
                 }
 
-                /* Refuse operating on file systems that have
-                 * mandatory locking enabled, see:
+                /* Refuse operating on file systems that have mandatory locking enabled, see:
                  *
                  * https://github.com/systemd/systemd/issues/1822
                  */
@@ -448,13 +447,10 @@ void server_process_native_file(
                         return;
                 }
 
-                /* Make the fd non-blocking. On regular files this has
-                 * the effect of bypassing mandatory locking. Of
-                 * course, this should normally not be necessary given
-                 * the check above, but let's better be safe than
-                 * sorry, after all NFS is pretty confusing regarding
-                 * file system flags, and we better don't trust it,
-                 * and so is SMB. */
+                /* Make the fd non-blocking. On regular files this has the effect of bypassing mandatory
+                 * locking. Of course, this should normally not be necessary given the check above, but let's
+                 * better be safe than sorry, after all NFS is pretty confusing regarding file system flags,
+                 * and we better don't trust it, and so is SMB. */
                 r = fd_nonblock(fd, true);
                 if (r < 0) {
                         log_ratelimit_error_errno(r, JOURNAL_LOG_RATELIMIT,
@@ -462,9 +458,8 @@ void server_process_native_file(
                         return;
                 }
 
-                /* The file is not sealed, we can't map the file here, since
-                 * clients might then truncate it and trigger a SIGBUS for
-                 * us. So let's stupidly read it. */
+                /* The file is not sealed, we can't map the file here, since clients might then truncate it
+                 * and trigger a SIGBUS for us. So let's stupidly read it. */
 
                 p = malloc(st.st_size);
                 if (!p) {