Thanks for the reminder, Justin. This has happened to me way too often
during the last days...

(really attaching the patch)


Jan
#! /bin/sh /usr/share/dpatch/dpatch-run
## 45_proc_complain_unmounted_proc.dpatch by  <[EMAIL PROTECTED]>
##
## DP: Complain when /proc/version cannot be found instead of
## DP: exiting silently.

@DPATCH@
--- procps-3.2.7/proc/version.cO        2007-08-06 16:18:41.000000000 +0200
+++ procps-3.2.7/proc/version.c 2007-08-06 16:19:28.000000000 +0200
@@ -39,8 +39,10 @@
     FILE *fp;
     char buf[256];
     
-    if ( (fp=fopen("/proc/version","r")) == NULL) /* failure implies impending 
death */
+    if ( (fp=fopen("/proc/version","r")) == NULL) {
+      fprintf(stderr, "Cannot find /proc/version - is /proc mounted?\n");
       exit(1);
+    }
     if (fgets(buf, 256, fp) == NULL) {
       fprintf(stderr, "Cannot read kernel version from /proc/version\n");
       fclose(fp);

Attachment: signature.asc
Description: Digital signature

Reply via email to