r22318: If we're running as non root we might not be able to dump the core file
commit0814a3acbe0fe40badf88690ab61d8ad106419d6
authorLars Müller <lmuelle@samba.org>
Tue, 17 Apr 2007 17:17:19 +0000 (17 17:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:26 +0000 (10 12:19 -0500)
treea62268cd2f6e71d3375c5183351fe5d1f7188163
parent56e31d60c672689e934fbed2794c7c54cf874b11
r22318: If we're running as non root we might not be able to dump the core file
to the corepath.

Even the chdir() will fail if the LOGFILEBASE path is set 0700.

If the currrent user doesn't have the permission to create the core file
we end with:
   unable to change to <LOGFILEBASE>
   refusing to dump core

The alternative would be to change the permissions of the directory.
But taht would not ensure core dumps are working out of the box.
source/lib/fault.c