Re: Readprofile and xosview

Leonard N. Zubkoff (lnz@dandelion.com)
Mon, 22 Apr 1996 09:16:55 -0700


Here's a patch to readprofile-1.1 that made it work on 1.3.? for me. Note that
Linus sent a different profile.c program out a while back.

--- readprofile.c- Thu Jan 26 02:47:36 1995
+++ readprofile.c Sat Apr 6 15:09:22 1996
@@ -30,7 +30,7 @@
static char *prgname;

/* These are the defaults and they cna be changed */
-static char defaultmap1[]="/usr/src/linux/System.map";
+static char defaultmap1[]="/boot/System.map";
static char defaultmap2[]="/usr/src/linux/zSystem.map";
static char defaultpro[]="/proc/profile";
static char optstring[]="m:p:itvarV";
@@ -179,6 +179,9 @@
prgname,mapFile, maplineno);
exit(1);
}
+
+ if (strcmp(fn_name[next], "_stext") == 0)
+ add = fn_add[next];

if (!(fn_len=fn_add[next]-fn_add[current]))
continue;