From: spam@streefland.xs4all.nl (Dick Streefland)
To: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.22-pre7
Date: Sat, 19 Jul 2003 16:27:22 -0000 [thread overview]
Message-ID: <3b8b.3f19716a.4a88c@altium.nl> (raw)
In-Reply-To: Pine.LNX.4.55L.0307181649290.29493@freak.distro.conectiva
Marcelo Tosatti <marcelo@conectiva.com.br> wrote:
| Here goes -pre7.
|
| This is a feature freeze, only bugfixes will be accepted from now on.
OK, do you accept the following bugfix for /proc/cmdline?
--- linux-2.4.21/fs/proc/proc_misc.c.orig Fri Jun 27 11:35:06 2003
+++ linux-2.4.21/fs/proc/proc_misc.c Fri Jun 27 11:37:15 2003
@@ -423,9 +423,9 @@
int count, int *eof, void *data)
{
extern char saved_command_line[];
- int len;
+ int len = 0;
- len = snprintf(page, count, "%s\n", saved_command_line);
+ proc_sprintf(page, &off, &len, "%s\n", saved_command_line);
return proc_calc_metrics(page, start, off, count, eof, len);
}
Since kernel version 2.4.19, a read() from /proc/cmdline with a
non-zero offset doesn't work anymore: try "dd bs=1 < /proc/cmdline".
Because of this bug, the following fails in ash and the busybox shell:
$ read line < /proc/cmdline
I've posted this fix to lkml in januari, and sent it to you several
times, but got no reaction. Alan Cox included this patch in version
2.4.21pre5-ac4 of his tree. Could you please include this obvious fix
in 2.4.22?
--
Dick Streefland //// De Bilt
dick.streefland@xs4all.nl (@ @) The Netherlands
------------------------------oOO--(_)--OOo------------------
next prev parent reply other threads:[~2003-07-19 16:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-18 19:53 Linux 2.4.22-pre7 Marcelo Tosatti
2003-07-18 23:06 ` Felipe Alfaro Solana
2003-07-19 0:38 ` Mike Fedyk
2003-07-19 0:53 ` Andre Tomt
2003-07-19 7:06 ` Lars Marowsky-Bree
2003-07-19 8:22 ` Christoph Hellwig
2003-07-19 8:21 ` Christoph Hellwig
2003-07-21 17:24 ` Mike Fedyk
2003-07-21 18:09 ` Christoph Hellwig
2003-07-18 23:12 ` J.A. Magallon
2003-07-18 23:18 ` J.A. Magallon
2003-07-19 0:21 ` Tom Vier
2003-07-19 16:27 ` Dick Streefland [this message]
[not found] <aJyM.3dH.27@gated-at.bofh.it>
[not found] ` <aNLX.6Go.5@gated-at.bofh.it>
2003-07-19 11:41 ` Arnd Bergmann
2003-07-19 12:25 ` Marc-Christian Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b8b.3f19716a.4a88c@altium.nl \
--to=spam@streefland.xs4all.nl \
--cc=dick.streefland@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox