summaryrefslogtreecommitdiff
path: root/package/openssh/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-28 19:47:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-28 19:47:03 +0100
commit3bd3eaf15d0f5640b51186e2c78ebcbc95d7be08 (patch)
tree1da20ab0cdbecbf9b0fc86203c4adbfbaa17a8eb /package/openssh/patches
parent7e7a9a7fdc49ff753d30bf2e1792003cdce7ff6f (diff)
add missing patch, to avoid warnings
Diffstat (limited to 'package/openssh/patches')
-rw-r--r--package/openssh/patches/patch-openbsd-compat_port-linux_c14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/openssh/patches/patch-openbsd-compat_port-linux_c b/package/openssh/patches/patch-openbsd-compat_port-linux_c
new file mode 100644
index 000000000..cf57335e0
--- /dev/null
+++ b/package/openssh/patches/patch-openbsd-compat_port-linux_c
@@ -0,0 +1,14 @@
+avoid following warning in syslog:
+sshd (1111): /proc/1111/oom_adj is deprecated, please use /proc/1111/oom_score_adj instead.
+
+--- openssh-5.6p1.orig/openbsd-compat/port-linux.c 2010-03-01 05:52:50.000000000 +0100
++++ openssh-5.6p1/openbsd-compat/port-linux.c 2011-01-27 19:16:12.000000000 +0100
+@@ -208,7 +208,7 @@ ssh_selinux_change_context(const char *n
+ #endif /* WITH_SELINUX */
+
+ #ifdef LINUX_OOM_ADJUST
+-#define OOM_ADJ_PATH "/proc/self/oom_adj"
++#define OOM_ADJ_PATH "/proc/self/oom_score_adj"
+ /*
+ * The magic "don't kill me", as documented in eg:
+ * http://lxr.linux.no/#linux+v2.6.32/Documentation/filesystems/proc.txt