Commits

Jason Perkins committed 65b3e25 Merge

Merged in wfgleper/premake-stable (pull request #18)

Handle missing ld.so.conf gracefully instead of crashing.

Comments (0)

Files changed (1)

 		-- Linux ldconfig file parser to find system library locations
 		local first, last
 		local dirs = { }
-		for line in io.lines(conf_file) do
+		local file = io.open(conf_file)
+		-- Handle missing ld.so.conf (BSDs) gracefully
+		if file == nil then
+			return dirs
+		end
+		for line in file:lines() do
 			-- ignore comments
 			first = line:find("#", 1, true)
 			if first ~= nil then