resume-dont-ask-questions.patch 857 B

12345678910111213141516171819202122232425262728
  1. Index: suspend-0.8_20100831/resume.c
  2. ===================================================================
  3. --- suspend-0.8_20100831.orig/resume.c
  4. +++ suspend-0.8_20100831/resume.c
  5. @@ -471,19 +471,9 @@ int main(int argc, char *argv[])
  6. while (stat(resume_dev_name, &stat_buf)) {
  7. fprintf(stderr,
  8. - "%s: Could not stat the resume device file '%s'\n"
  9. - "\tPlease type in the full path name to try again\n"
  10. - "\tor press ENTER to boot the system: ", my_name,
  11. - resume_dev_name);
  12. - fgets(resume_dev_name, MAX_STR_LEN - 1, stdin);
  13. - n = strlen(resume_dev_name) - 1;
  14. - if (n <= 0) {
  15. - error = EINVAL;
  16. - goto Free;
  17. - }
  18. -
  19. - if (resume_dev_name[n] == '\n')
  20. - resume_dev_name[n] = '\0';
  21. + "%s: Could not stat the resume device file '%s'\n", my_name, resume_dev_name);
  22. + error = EINVAL;
  23. + goto Free;
  24. }
  25. setvbuf(stdout, NULL, _IONBF, 0);