Source: ocserv
Version: 1.2.1-1
Severity: normal
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

  There is a compilation error for ocserv on the loongarch machine. 
Tested the patch attached to the email on the LoongArch machine and it resolved 
the issue.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ocserv (1.2.1-1) unstable; urgency=medium
 .
   * New upstream version 1.2.1
   * Replace nuttcp with iperf3 from B-D
Author: Aron Xu <a...@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2023-10-26

--- ocserv-1.2.1.orig/src/worker-privs.c
+++ ocserv-1.2.1/src/worker-privs.c
@@ -182,7 +182,9 @@ int disable_system_calls(struct worker_s
 
        ADD_SYSCALL(open, 0);
        ADD_SYSCALL(openat, 0);
+#if defined(SYS_fstat) || defined(__NR_fstat)
        ADD_SYSCALL(fstat, 0);
+#endif
 #if defined(SYS_fstat64) || defined(__NR_fstat64)
        ADD_SYSCALL(fstat64, 0);
 #endif

Reply via email to