diff options
author | Herbert Poetzl <herbert@13thfloor.at> | 2006-12-08 05:36:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:37 -0500 |
commit | a2ee8649ba6d71416712e798276bf7c40b64e6e5 (patch) | |
tree | 90603c28d717fc0b2e92adb7e3f3a98adf6ae458 /fs/proc | |
parent | 6e2ac66470976ad7f57e0948572669b2bdfea2d0 (diff) |
[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 <herbert@13thfloor.at>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 51815cece6f3..9397ff62553e 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -252,8 +252,8 @@ static int version_read_proc(char *page, char **start, off_t off, | |||
252 | { | 252 | { |
253 | int len; | 253 | int len; |
254 | 254 | ||
255 | strcpy(page, linux_banner); | 255 | len = sprintf(page, linux_banner, |
256 | len = strlen(page); | 256 | utsname()->release, utsname()->version); |
257 | return proc_calc_metrics(page, start, off, count, eof, len); | 257 | return proc_calc_metrics(page, start, off, count, eof, len); |
258 | } | 258 | } |
259 | 259 | ||