clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago |
r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure
|
-
Property mode
set to
100644
|
File size:
756 bytes
|
Rev | Line | |
---|
[617118d] | 1 | Submitted By: Alexander E. Patrakov (semzx at newmail dot ru)
|
---|
| 2 | Origin: Alexander E. Patrakov
|
---|
| 3 | Date: 2003-11-22
|
---|
| 4 | Initial Package Version: 2.85
|
---|
| 5 | Description: Without this patch, init sometimes clobbers environment variables
|
---|
| 6 | set by kernel (such as TERM) when trying to change process title for ps
|
---|
| 7 | due to out-of-bounds access to the command line arguments.
|
---|
| 8 |
|
---|
| 9 | diff -ur sysvinit-2.85/src/init.c sysvinit-2.85-fixed/src/init.c
|
---|
| 10 | --- sysvinit-2.85/src/init.c 2003-04-15 17:16:41.000000000 +0600
|
---|
| 11 | +++ sysvinit-2.85-fixed/src/init.c 2003-11-22 19:46:03.000000000 +0500
|
---|
| 12 | @@ -432,7 +432,7 @@
|
---|
| 13 | len = vsnprintf(buf, sizeof(buf), fmt, ap);
|
---|
| 14 | va_end(ap);
|
---|
| 15 |
|
---|
| 16 | - memset(argv0, 0, maxproclen + 1);
|
---|
| 17 | + memset(argv0, 0, maxproclen);
|
---|
| 18 | strncpy(argv0, buf, maxproclen - 1);
|
---|
| 19 |
|
---|
| 20 | return len;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.