I think the 8193 should be 8192 here:

iBytesRead = read( fdConfigIni, szConfigIni, 8193 );

And I see some places you use fprintf with stderr and other places you use printf. Maybe the printf is not going to the same output as stderr.

Presslab