summaryrefslogtreecommitdiff
path: root/core/procps-ng/complain_unmounted_proc.patch
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-05-06 11:43:14 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-05-06 11:43:14 +0200
commit601a559448eb957ac98aca7a6e03de59e45fff91 (patch)
tree13fc71216622c3d764aa611b6a54e1918f21c496 /core/procps-ng/complain_unmounted_proc.patch
parentc96a7351e1f295c1e311860dec19ac7b506b0c5c (diff)
parentf37e773fe397778858ea8d51601554863c252536 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/rtorrent/PKGBUILD core/libcap/PKGBUILD extra/samba/PKGBUILD extra/systemd/PKGBUILD extra/usbmuxd/PKGBUILD testing/glib2/PKGBUILD
Diffstat (limited to 'core/procps-ng/complain_unmounted_proc.patch')
-rw-r--r--core/procps-ng/complain_unmounted_proc.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/procps-ng/complain_unmounted_proc.patch b/core/procps-ng/complain_unmounted_proc.patch
new file mode 100644
index 000000000..ed932dbba
--- /dev/null
+++ b/core/procps-ng/complain_unmounted_proc.patch
@@ -0,0 +1,17 @@
+Author: <hesso@hesso.pool.math.tu-berlin.de>
+Description: Complain when /proc/version cannot be found instead of
+exiting silently.
+--- a/proc/version.c
++++ b/proc/version.c
+@@ -33,8 +33,10 @@
+ char buf[256];
+ int version_string_depth;
+
+- 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);