Lines Matching defs:fname
89 audit_cron_getinfo(char *fname, char *fname_aux, struct auditinfo_addr *info)
147 if (stat(fname, &st))
160 if (strstr(fname, "crontabs") != NULL) {
161 if (getpwnam_r(basename(fname), &pwd, pwd_buff,
183 audit_cron_setinfo(char *fname, struct auditinfo_addr *info)
188 r = chmod(fname, 0200);
192 if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
226 (void) unlink(fname);
232 audit_cron_make_anc_name(char *fname)
236 anc_name = (char *)malloc(strlen(fname) + strlen(AU_SUFFIX) + 1);
240 (void) strcpy(anc_name, fname);
291 char *anc_file, *fname;
305 fname = name;
307 if (strlen(path) + strlen(fname) + 2 > PATH_MAX) {
312 fname);
313 fname = full_path;
317 fname = at_jobname;
321 anc_file = audit_cron_make_anc_name(fname);
325 r = audit_cron_getinfo(fname, anc_file, &info);