256 |
return FALSE; |
return FALSE; |
257 |
|
|
258 |
} |
} |
|
|
|
|
if(!S_ISREG(buf.st_mode)) { |
|
|
|
|
|
error("%s: The control file '%s' is not a regular file.\n", prog, rcfile); |
|
|
|
|
|
return FALSE; |
|
|
|
|
|
} |
|
259 |
|
|
260 |
if(S_ISLNK(buf.st_mode)) { |
if(S_ISLNK(buf.st_mode)) { |
261 |
|
|
262 |
error("%s: The control file' %s' must not be a symbolic link.\n", |
error("%s: The control file '%s' must not be a symbolic link.\n", |
263 |
prog, rcfile); |
prog, rcfile); |
264 |
|
|
265 |
return(FALSE); |
return(FALSE); |
266 |
|
|
267 |
} |
} |
268 |
|
|
269 |
|
if(!S_ISREG(buf.st_mode)) { |
270 |
|
|
271 |
|
error("%s: The control file '%s' is not a regular file.\n", prog, rcfile); |
272 |
|
|
273 |
|
return FALSE; |
274 |
|
|
275 |
|
} |
276 |
|
|
277 |
if(buf.st_uid != geteuid()) { |
if(buf.st_uid != geteuid()) { |
278 |
|
|
279 |
error("%s: The control file %s must be owned by you.\n", prog, rcfile); |
error("%s: The control file '%s' must be owned by you.\n", prog, rcfile); |
280 |
|
|
281 |
return FALSE; |
return FALSE; |
282 |
|
|