#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_fix_proc_stat_errormsg.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix errormessage if /proc/stat is unreadable. @DPATCH@ diff -urNad vnstat-1.4~/src/proc.c vnstat-1.4/src/proc.c --- vnstat-1.4~/src/proc.c 2004-03-26 14:22:42.000000000 +0100 +++ vnstat-1.4/src/proc.c 2007-09-19 11:34:34.000000000 +0200 @@ -38,7 +38,7 @@ } if ((fp=fopen("/proc/stat","r"))==NULL) { - printf("Error:\nUnable to read /proc/net/dev.\n"); + printf("Error:\nUnable to read /proc/stat.\n"); exit(1); }