Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/swapctl Add word "WARNING" when complaining about swap ...



details:   https://anonhg.NetBSD.org/src/rev/dacc04163e28
branches:  trunk
changeset: 518216:dacc04163e28
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 26 15:23:38 2001 +0000

description:
Add word "WARNING" when complaining about swap being world-read/writeable
to clarify that this was not an error condition and that swap was indeed
added despite the problem.

diffstat:

 sbin/swapctl/swapctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 1c660ed01ec3 -r dacc04163e28 sbin/swapctl/swapctl.c
--- a/sbin/swapctl/swapctl.c    Mon Nov 26 14:21:33 2001 +0000
+++ b/sbin/swapctl/swapctl.c    Mon Nov 26 15:23:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swapctl.c,v 1.18 2001/02/19 22:56:23 cgd Exp $ */
+/*     $NetBSD: swapctl.c,v 1.19 2001/11/26 15:23:38 pooka Exp $       */
 
 /*
  * Copyright (c) 1996, 1997, 1999 Matthew R. Green
@@ -363,9 +363,9 @@
                goto oops;
 
        if (sb.st_mode & S_IROTH) 
-               warnx("%s is readable by the world", path);
+               warnx("WARNING: %s is readable by the world", path);
        if (sb.st_mode & S_IWOTH)
-               warnx("%s is writable by the world", path);
+               warnx("WARNING: %s is writable by the world", path);
 
        if (swapctl(SWAP_ON, path, priority) < 0) {
 oops:



Home | Main Index | Thread Index | Old Index