Mailinglist Archive: opensuse-bugs (14787 mails)
| < Previous | Next > |
[Bug 219629] suspend to disk never resumes but boots normally.
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Thu, 9 Nov 2006 14:47:03 -0700 (MST)
- Message-id: <20061109214703.4B92E25C88C@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=219629
seife@xxxxxxxxxx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Comment #1 from seife@xxxxxxxxxx 2006-11-09 14:47 MST -------
Ok. We have no /etc/suspend.conf in the initrd for resume, and the config file
parser chokes on that. Fix is pretty trivial:
--- config.c
+++ config.c
@@ -33,16 +33,15 @@
int error, i, j, k;
if (stat(file_name, &stat_buf)) {
- error = errno;
- fprintf(stderr, "my_name: Could not stat configuration file\n");
- return -error;
+ fprintf(stderr, "%s: Could not stat configuration file\n",
+ my_name);
+ return 0;
}
file = fopen(file_name, "r");
if (!file) {
- error = errno;
fprintf(stderr, "%s: Could not open configuration file\n",
my_name);
- return -error;
+ return 0;
}
I'll submit a fixed package. Sorry for that.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
seife@xxxxxxxxxx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
------- Comment #1 from seife@xxxxxxxxxx 2006-11-09 14:47 MST -------
Ok. We have no /etc/suspend.conf in the initrd for resume, and the config file
parser chokes on that. Fix is pretty trivial:
--- config.c
+++ config.c
@@ -33,16 +33,15 @@
int error, i, j, k;
if (stat(file_name, &stat_buf)) {
- error = errno;
- fprintf(stderr, "my_name: Could not stat configuration file\n");
- return -error;
+ fprintf(stderr, "%s: Could not stat configuration file\n",
+ my_name);
+ return 0;
}
file = fopen(file_name, "r");
if (!file) {
- error = errno;
fprintf(stderr, "%s: Could not open configuration file\n",
my_name);
- return -error;
+ return 0;
}
I'll submit a fixed package. Sorry for that.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
| < Previous | Next > |