Преглед на файлове

Fix ptrace(3)/startup on OpenBSD after 868acbfc1a

Just limit the EPERM hack to Linux where it was needed.
Bryan Drewery преди 8 години
родител
ревизия
ddc13503d9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/shell.cc

+ 1 - 1
src/shell.cc

@@ -385,7 +385,7 @@ void check_trace(int start)
             /* Linux compat or otherwise removed syscall. Just ignore. */
             errno != ENOSYS &&
         /* EPERM is given on fbsd when security.bsd.unprivileged_proc_debug=0 */
-#ifdef __FreeBSD__
+#ifndef __linux__
             errno != EPERM &&
 #endif
             errno != EINVAL) {