* fhandler_process.cc (fhandler_process::open): Set fileid.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | ||||
| 2002-06-02  Christopher January <chris@atomice.net> | ||||
|  | ||||
| 	* fhandler_process.cc (fhandler_process::open): Set fileid. | ||||
|  | ||||
| 2002-06-02  Christopher Faylor  <cgf@redhat.com> | ||||
|  | ||||
| 	Remove unneeded sigproc.h includes throughout. | ||||
|   | ||||
| @@ -317,13 +317,13 @@ fhandler_proc::fill_filebuf () | ||||
|       { | ||||
| 	if (!filebuf) | ||||
| 	  { | ||||
| 	struct utsname uts_name; | ||||
| 	uname (&uts_name); | ||||
| 	    bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + | ||||
| 		      1 + strlen (uts_name.version) + 2; | ||||
| 	filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); | ||||
| 	    filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, | ||||
| 			 uts_name.release, uts_name.version); | ||||
| 	    struct utsname uts_name; | ||||
| 	    uname (&uts_name); | ||||
| 		bufalloc = strlen (uts_name.sysname) + 1 + strlen (uts_name.release) + | ||||
| 			  1 + strlen (uts_name.version) + 2; | ||||
| 	    filebuf = (char *) cmalloc (HEAP_BUF, bufalloc); | ||||
| 		filesize = __small_sprintf (filebuf, "%s %s %s\n", uts_name.sysname, | ||||
| 			     uts_name.release, uts_name.version); | ||||
| 	  } | ||||
| 	break; | ||||
|       } | ||||
|   | ||||
| @@ -226,6 +226,7 @@ fhandler_process::open (path_conv *pc, int flags, mode_t mode) | ||||
|       goto out; | ||||
|     } | ||||
|  | ||||
|   fileid = process_file_no; | ||||
|   fill_filebuf (p); | ||||
|  | ||||
|   if (flags & O_APPEND) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user