![](https://seccdn.libravatar.org/avatar/5a7166c7cfba16db9c3066d0f5eac66d.jpg?s=120&d=mm&r=g)
Can anybody running 9.1 confirm the following? sysvinit-2.85-20 shipped with 9.1 has a bug setting HOME environment variable. If you run the command "tr '\0' '\n' < /proc/1/environ" as root, it reports: OME=/ TERM=linux vga=0x317 splash=silent Note missing H in HOME. Possible impact is on apcupsd package. Has anybody reported this to SUSE feedback? If not, I will do that. Thanks, -Kastus
![](https://seccdn.libravatar.org/avatar/1c550ab95ead618e0294d839f94e844d.jpg?s=120&d=mm&r=g)
On Monday 31 May 2004 07:19, Kastus wrote:
Can anybody running 9.1 confirm the following?
sysvinit-2.85-20 shipped with 9.1 has a bug setting HOME environment variable.
If you run the command "tr '\0' '\n' < /proc/1/environ" as root, it reports:
OME=/ TERM=linux vga=0x317 splash=silent
Note missing H in HOME.
Funny ! I tried your command and I got ME instead of OME. I do not know if this is a bug or what is the meaning of this curious thing. My system works without any troubles.
Possible impact is on apcupsd package.
Has anybody reported this to SUSE feedback?
If not, I will do that.
Thanks, -Kastus
-- ________________ Paul Ollion Proud Linux user - SuSE - 9.1
![](https://seccdn.libravatar.org/avatar/6d198f8c8f1c94ccef873cebcf4f5dfa.jpg?s=120&d=mm&r=g)
Paul Ollion wrote:
On Monday 31 May 2004 07:19, Kastus wrote:
Can anybody running 9.1 confirm the following?
sysvinit-2.85-20 shipped with 9.1 has a bug setting HOME environment variable.
If you run the command "tr '\0' '\n' < /proc/1/environ" as root, it reports:
OME=/ TERM=linux vga=0x317 splash=silent
Note missing H in HOME.
Funny ! I tried your command and I got ME instead of OME. I do not know if this is a bug or what is the meaning of this curious thing. My system works without any troubles.
Possible impact is on apcupsd package.
Has anybody reported this to SUSE feedback?
If not, I will do that.
Thanks, -Kastus
Got OME=/ also. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
![](https://seccdn.libravatar.org/avatar/961cb91afb232ccfdad4fd8cabe8dd87.jpg?s=120&d=mm&r=g)
On Monday 31 May 2004 06:19, Kastus wrote:
Can anybody running 9.1 confirm the following?
sysvinit-2.85-20 shipped with 9.1 has a bug setting HOME environment variable.
If you run the command "tr '\0' '\n' < /proc/1/environ" as root, it reports:
OME=/ TERM=linux vga=0x317 splash=silent
Note missing H in HOME.
Possible impact is on apcupsd package.
Has anybody reported this to SUSE feedback?
If not, I will do that.
Thanks, -Kastus Hummmm yep got the same here as well seems like an update be needed so where is it i wonder.
-- G6NJR Pete otherwise known as "Quinton 11" A Linux Only area Happy bug hunting M$ clan Pete,,,,, :-)
![](https://seccdn.libravatar.org/avatar/72ee3b9e0735cf98a1e936a90fc087ed.jpg?s=120&d=mm&r=g)
On Monday 31 May 2004 07.19, you wrote:
Can anybody running 9.1 confirm the following?
sysvinit-2.85-20 shipped with 9.1 has a bug setting HOME environment variable.
If you run the command "tr '\0' '\n' < /proc/1/environ" as root, it reports:
OME=/ TERM=linux vga=0x317 splash=silent
Note missing H in HOME.
Possible impact is on apcupsd package.
Has anybody reported this to SUSE feedback?
If not, I will do that.
Did you report it yet? I think I have the solution. If you wait a few minutes I think I can give you a patch to go with your error report
![](https://seccdn.libravatar.org/avatar/72ee3b9e0735cf98a1e936a90fc087ed.jpg?s=120&d=mm&r=g)
On Tuesday 01 June 2004 02.19, Anders Johansson wrote:
Did you report it yet? I think I have the solution. If you wait a few minutes I think I can give you a patch to go with your error report
ok, I just rebooted to my patched sysvinit, and it looks good. This patch looks like it solves the bug --- src/init.c.old 2004-06-01 02:14:57.342087312 +0200 +++ src/init.c 2004-06-01 02:15:19.464724160 +0200 @@ -452,7 +452,7 @@ len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); - memset(argv0, 0, maxproclen + 1); + memset(argv0, 0, maxproclen); strncpy(argv0, buf, maxproclen - 1); return len;
![](https://seccdn.libravatar.org/avatar/5a7166c7cfba16db9c3066d0f5eac66d.jpg?s=120&d=mm&r=g)
On Tue, Jun 01, 2004 at 02:30:40AM +0200, Anders Johansson wrote:
On Tuesday 01 June 2004 02.19, Anders Johansson wrote:
Did you report it yet? I think I have the solution. If you wait a few minutes I think I can give you a patch to go with your error report
I filed the bug report yesterday, unfortunately, without any proposed solution.
ok, I just rebooted to my patched sysvinit, and it looks good. This patch looks like it solves the bug
--- src/init.c.old 2004-06-01 02:14:57.342087312 +0200 +++ src/init.c 2004-06-01 02:15:19.464724160 +0200 @@ -452,7 +452,7 @@ len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap);
- memset(argv0, 0, maxproclen + 1); + memset(argv0, 0, maxproclen); strncpy(argv0, buf, maxproclen - 1);
return len;
Patch looks good to me, I only have no idea how I can attach it to existing bug report. I hope somebody from SuSE reads the list... Thank you very much Anders! Regards, -Kastus
![](https://seccdn.libravatar.org/avatar/2de5a75d866e9027409b3ff07e052875.jpg?s=120&d=mm&r=g)
* Anders Johansson <andjoh@rydsbo.net> [Jun 01. 2004 02:32]:
Did you report it yet? I think I have the solution. If you wait a few minutes I think I can give you a patch to go with your error report
ok, I just rebooted to my patched sysvinit, and it looks good. This patch looks like it solves the bug
--- src/init.c.old 2004-06-01 02:14:57.342087312 +0200 +++ src/init.c 2004-06-01 02:15:19.464724160 +0200 @@ -452,7 +452,7 @@ len = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap);
- memset(argv0, 0, maxproclen + 1); + memset(argv0, 0, maxproclen); strncpy(argv0, buf, maxproclen - 1);
return len;
I'll forward this on to the right person. Thanks! -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J.
participants (6)
-
Anders Johansson
-
Kastus
-
Mads Martin Joergensen
-
Paul Ollion
-
peter Nikolic
-
Sid Boyce