/proc/self

Joe Keane (jgk@jgk.org)
Wed, 16 Apr 1997 03:14:59 -0700


I think "/proc/self" is too big.

*** root.c.old Tue Apr 30 03:09:45 1996
--- root.c.new Wed Apr 16 03:07:42 1997
***************
*** 223,229 ****
char tmp[30];

iput(inode);
! len = 1 + sprintf(tmp, "%d", current->pid);
if (buflen < len)
len = buflen;
memcpy_tofs(buffer, tmp, len);
--- 223,229 ----
char tmp[30];

iput(inode);
! len = sprintf(tmp, "%d", current->pid);
if (buflen < len)
len = buflen;
memcpy_tofs(buffer, tmp, len);