Article View: comp.bugs.sys5
Article #800TIMEZONE misfeature in /etc/init
From: Amos Shapir
Date: Mon, 20 Jun 1988 09:25
Date: Mon, 20 Jun 1988 09:25
25 lines
1377 bytes
1377 bytes
The problem: In release 3.1, /etc/init sometimes fails mysteriously when trying to run commands in /etc/inittab. The cause: /etc/init reads /etc/TIMEZONE to get the environment variables for commands. Instead of letting a /bin/sh do it, it builds the environment pointers by looking for an '=' character in each line, then using everything to the left of it as the variable name, and everything on its right as the value. This is primitive and kludgey, since it puts in the environment variables which were not exported, and even things that are not variables at all - mainly comments that happen to contain '='. A bad envp list may crash a shell. The Solution: Until release 4.0 comes along, do not keep anything except TZ=timezone in your /etc/TIMEZONE; pay extra attention to '=' characters in comments. -- Amos Shapir (My other cpu is a NS32532) National Semiconductor (Israel) 6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel Tel. +972 52 522261 amos%taux01@nsc.com 34 48 E / 32 10 N
Technical Details
Message-ID:
<759@taux01.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!nsc!taux01!amosShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!purdue!decwrl!nsc!taux01!amos From: amos@taux01.UUCP (Amos Shapir) Newsgroups: comp.bugs.sys5 Subject: TIMEZONE misfeature in /etc/init Message-ID: <759@taux01.UUCP> Date: 20 Jun 88 09:25:50 GMT Organization: National Semiconductor (Israel) Ltd. Lines: 25