This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b9801e  NO-OP. Fix argument order.
1b9801e is described below

commit 1b9801e1a26b048d0bed2888d6d6f2670d303b33
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jan 7 08:33:09 2026 +0000

    NO-OP. Fix argument order.
    
    This is a NO-OP since SEEK_SET is defined as zero but the definition of 
lseek is:
    off_t lseek(int fd, off_t offset, int whence);
    Reported/fixed by Alex Dupre and Michael Osipov
---
 src/native/unix/native/jsvc-unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/native/unix/native/jsvc-unix.c 
b/src/native/unix/native/jsvc-unix.c
index a289b53..9c8c944 100644
--- a/src/native/unix/native/jsvc-unix.c
+++ b/src/native/unix/native/jsvc-unix.c
@@ -608,7 +608,7 @@ retry:
                 return 122;
             }
         }
-        lseek(fd, SEEK_SET, 0);
+        lseek(fd, 0, SEEK_SET);
         pidf = fdopen(fd, "r+");
         fprintf(pidf, "%d\n", (int)getpid());
         fflush(pidf);

Reply via email to