[PATCH] Fix linux banner utsname information

utsname information is shown in the linux banner, which also is used for
/proc/version (which can have different utsname values inside a uts
namespaces).  this patch makes the varying data arguments and changes the
string to a format string, using those arguments.

Signed-off-by: Herbert Poetzl <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Herbert Poetzl 2006-12-08 02:36:00 -08:00 • committed by Linus Torvalds
commit a2ee8649ba
4 changed files with 9 additions and 5 deletions

View file

@ -252,8 +252,8 @@ static int version_read_proc(char *page, char **start, off_t off,
{
int len;
strcpy(page, linux_banner);
len = strlen(page);
len = sprintf(page, linux_banner,
utsname()->release, utsname()->version);
return proc_calc_metrics(page, start, off, count, eof, len);
}