[BusyBox] init, inetd and timezones?
Steven Scholz
steven.scholz at imc-berlin.de
Mon Nov 25 10:08:04 UTC 2002
Hi there,
the RTC on my board stores the time in UTC. That's why in /etc/profile I set TZ
to something like "CET-1". So "date" shows the correct localtime.
But now I realized that times shown by the ftpd are still in UTC.
inetd is started by init since my /etc/inittab contains
# Start internet super daemon; do NOT background!
::respawn:/sbin/inetd -i
Obviously the environment varibale TZ is not set for inetd when started by init.
When I start inetd from a console, everything is fine.
So how could I passed a correct value for TZ to inetd?
Should I hack run() in inic.c to add TZ=CET-1 to char *environment[]?
I am using busybox-0.61pre.
Cheers, Steven
More information about the busybox
mailing list