git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30294 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-05-05 09:23:01 +00:00
parent 14877b3246
commit 055791e2ba

View file

@ -1066,6 +1066,13 @@ dump_tables()
FILE *fptr;
soft_int++;
if (access(".", W_OK) != 0)
{
snprintf(ebuf, sizeof(ebuf),
"Failed to access gdomap.dump file for output\n");
gdomap_log(LOG_ERR);
return;
}
fptr = fopen("gdomap.dump", "w");
if (fptr != 0)
{
@ -1432,11 +1439,19 @@ init_iface()
static void
load_iface(const char* from)
{
FILE *fptr = fopen(from, "rt");
FILE *fptr;
char buf[128];
int line = 0;
int num_iface = 0;
if (access(from, R_OK) != 0)
{
snprintf(ebuf, sizeof(ebuf),
"Unable to access address config - '%s'", from);
gdomap_log(LOG_CRIT);
exit(EXIT_FAILURE);
}
fptr = fopen(from, "rt");
if (fptr == 0)
{
snprintf(ebuf, sizeof(ebuf),
@ -4550,10 +4565,17 @@ printf(
case 'c':
{
FILE *fptr = fopen(optarg, "rt");
FILE *fptr;
int line = 0;
char buf[128];
if (access(optarg, R_OK) != 0)
{
fprintf(stderr, "Unable to access probe config - '%s'\n",
optarg);
exit(EXIT_FAILURE);
}
fptr = fopen(optarg, "rt");
if (fptr == 0)
{
fprintf(stderr, "Unable to open probe config - '%s'\n",