]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
copy: fix typo and slightly update comment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 May 2026 17:04:33 +0000 (02:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 May 2026 17:04:33 +0000 (02:04 +0900)
src/shared/copy.c

index a8e2b68db14149e033c47dbccac903019300411f..d5788c7d77fb5f55ed2789ff61a772842f44f2f6 100644 (file)
@@ -206,8 +206,7 @@ int copy_bytes_full(
         if ((copy_flags & COPY_REFLINK)) {
                 off_t foffset;
 
-                /* In reflink mode we need to know where the current file offset is, but if we just seeked to
-                 * 0 anyway, we can suppress that. */
+                /* In reflink mode, we need to know the current file offset, unless we already sought to 0 anyway. */
                 foffset = FLAGS_SET(copy_flags, COPY_SEEK0_SOURCE) ? 0 : lseek(fdf, 0, SEEK_CUR);
                 if (foffset >= 0) {
                         off_t toffset;