summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--openbsd-compat/port-linux.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ce434723..1a318e049 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
120100301 120100301
2 - (dtucker) [regress/{cert-hostkey,cfgmatch,cipher-speed}.sh} Replace 2 - (dtucker) [regress/{cert-hostkey,cfgmatch,cipher-speed}.sh} Replace
3 "echo -n" with "echon" for portability. 3 "echo -n" with "echon" for portability.
4 - (dtucker) [openbsd-compat/port-linux.c] Make failure to write to the OOM
5 adjust log at verbose only, since according to cjwatson in bug #1470
6 some virtualization platforms don't allow writes.
4 7
520100228 820100228
6 - (djm) [auth.c] On Cygwin, refuse usernames that have differences in 9 - (djm) [auth.c] On Cygwin, refuse usernames that have differences in
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index cda751dea..89b9a7340 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -1,4 +1,4 @@
1/* $Id: port-linux.c,v 1.7 2009/12/08 02:39:48 dtucker Exp $ */ 1/* $Id: port-linux.c,v 1.8 2010/03/01 04:52:50 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> 4 * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
@@ -229,11 +229,11 @@ oom_adjust_setup(void)
229 debug3("%s", __func__); 229 debug3("%s", __func__);
230 if ((fp = fopen(OOM_ADJ_PATH, "r+")) != NULL) { 230 if ((fp = fopen(OOM_ADJ_PATH, "r+")) != NULL) {
231 if (fscanf(fp, "%d", &oom_adj_save) != 1) 231 if (fscanf(fp, "%d", &oom_adj_save) != 1)
232 logit("error reading %s: %s", OOM_ADJ_PATH, strerror(errno)); 232 verbose("error reading %s: %s", OOM_ADJ_PATH, strerror(errno));
233 else { 233 else {
234 rewind(fp); 234 rewind(fp);
235 if (fprintf(fp, "%d\n", OOM_ADJ_NOKILL) <= 0) 235 if (fprintf(fp, "%d\n", OOM_ADJ_NOKILL) <= 0)
236 logit("error writing %s: %s", 236 verbose("error writing %s: %s",
237 OOM_ADJ_PATH, strerror(errno)); 237 OOM_ADJ_PATH, strerror(errno));
238 else 238 else
239 verbose("Set %s from %d to %d", 239 verbose("Set %s from %d to %d",
@@ -254,7 +254,7 @@ oom_adjust_restore(void)
254 return; 254 return;
255 255
256 if (fprintf(fp, "%d\n", oom_adj_save) <= 0) 256 if (fprintf(fp, "%d\n", oom_adj_save) <= 0)
257 logit("error writing %s: %s", OOM_ADJ_PATH, strerror(errno)); 257 verbose("error writing %s: %s", OOM_ADJ_PATH, strerror(errno));
258 else 258 else
259 verbose("Set %s to %d", OOM_ADJ_PATH, oom_adj_save); 259 verbose("Set %s to %d", OOM_ADJ_PATH, oom_adj_save);
260 260