84 |
} |
} |
85 |
if ((sb.st_mode & statfile_perms) != statfile_perms) { |
if ((sb.st_mode & statfile_perms) != statfile_perms) { |
86 |
radlog(L_ERR, |
radlog(L_ERR, |
87 |
_("refusing to use file `%s': file has incorrect permissions"), |
_("SNMP system disabled: file `%s' has incorrect permissions"), |
88 |
radstat_path); |
radstat_path); |
89 |
close(tempfd); |
close(tempfd); |
90 |
return -1; |
return -1; |
128 |
if (!shmem_base && shmem_alloc(size)) |
if (!shmem_base && shmem_alloc(size)) |
129 |
return NULL; |
return NULL; |
130 |
if (shmem_size - offset < size) { |
if (shmem_size - offset < size) { |
131 |
radlog(L_ERR, _("shmem_get(): can't alloc %d bytes"), size); |
radlog(L_ERR, |
132 |
|
ngettext("shmem_get(): can't allocate %d byte", |
133 |
|
"shmem_get(): can't allocate %d bytes", |
134 |
|
size), |
135 |
|
size); |
136 |
} else { |
} else { |
137 |
ptr = shmem_base + offset; |
ptr = shmem_base + offset; |
138 |
offset += size; |
offset += size; |