Lines Matching refs:fname
88 audit_cron_getinfo(char *fname, char *fname_aux, struct auditinfo_addr *info)
146 if (stat(fname, &st))
159 if (strstr(fname, "crontabs") != NULL) {
160 if (getpwnam_r(basename(fname), &pwd, pwd_buff,
182 audit_cron_setinfo(char *fname, struct auditinfo_addr *info)
187 r = chmod(fname, 0200);
191 if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
225 (void) unlink(fname);
231 audit_cron_make_anc_name(char *fname)
235 anc_name = (char *)malloc(strlen(fname) + strlen(AU_SUFFIX) + 1);
239 (void) strcpy(anc_name, fname);
291 char *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);