[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

mkinitrd [PATCH] Not resuming is not an error. Return 0 instead of 1.



From 12ed2b1c295422c884d36addfd822af40e959949 Mon Sep 17 00:00:00 2001
From: Warren Togami <wtogami redhat com>
Date: Fri, 30 Nov 2007 15:06:55 -0500
Subject: [PATCH] Not resuming is not an error.  Return 0 instead of 1.

---
 nash/nash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nash/nash.c b/nash/nash.c
index 2996e0e..9190f5f 100644
--- a/nash/nash.c
+++ b/nash/nash.c
@@ -1447,7 +1447,7 @@ resumeCommand(char * cmd, char * end)
     if (strncmp(buf, "S1SUSP", 6) && strncmp(buf, "S2SUSP", 6)) {
         qprintf("No suspend signature on swap, not resuming.\n");
         close(fd);
-        return 1;
+        return 0;
     }

     if (fstat(fd, &sb)) {
--
1.5.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]