Don't add audit record when coredumps are disabled or name cannot be expanded.
Don't add audit record when coredumps are disabled or name cannot be expanded.

Discussed with:	rwatson
Obtained from:	WHEEL Systems

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase