/[radius]/radius/radiusd/stat.c
ViewVC logotype

Diff of /radius/radiusd/stat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by gray, Thu Jun 19 12:39:42 2003 UTC revision 1.40 by gray, Mon Jun 23 05:31:39 2003 UTC
# Line 84  shmem_alloc(size_t size) Line 84  shmem_alloc(size_t size)
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;
# Line 128  shmem_get(size_t size, int zero) Line 128  shmem_get(size_t size, int zero)
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;

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26