Dangerous missconfiguration on the buildfarm

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Wed Sep 2 15:11:17 CEST 2020


Hi,

yesterday I discovered that /bin/sh on the Solaris 11 machines does not
work correctly and after an hour of investigation, it turned out that this 
missbehavior is caused by enforcing to set the the environment variable 
FIGNORE from a script in /etc/environmen/*. That causes ksh93 (/bin/sh on 
Solaris 11 links to it) to expand

	echo *

into a file list that includes all files that start with a dot, including 
. and ..

This causes several makefiles to abort because unexpected arguments are 
propagates to commands like 'ln -s' and this is hihgly dangerous, if you e.g.
call
	rm -rf *



Jörg

-- 
 EMail:joerg at schily.net                    (home) Jörg Schilling D-13353 Berlin
    joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'


More information about the buildfarm mailing list