Home | History | Annotate | Download | only in atrun

Lines Matching refs:filename

147 run_file(const char *filename, uid_t uid, gid_t gid)
171 if (chmod(filename, S_IRUSR) == -1)
172 perr("Cannot change file permissions to `%s'", filename);
191 (unsigned long)uid, filename);
195 stream = fopen(filename, "r");
207 (unsigned long)uid, filename);
217 if (lstat(filename, &lbuf) == -1)
218 perr("Error in lstat of `%s'", filename);
224 filename);
230 "- aborting", filename);
234 filename);
246 perrx("File `%s' is in wrong format - aborting", filename);
249 perrx("Illegal mail name `%s' in `%s'", mailbuf, filename);
254 filename, (unsigned long)nuid, (unsigned long)uid);
258 filename, (unsigned long)ngid, (unsigned long)gid);
272 if ((fd_out = open(filename,
274 perr("Cannot create output file `%s'", filename);
281 write_string(fd_out, filename);
323 queue = *filename;
344 if (stat(filename, &buf) == -1)
345 perr("Error in stat of output file `%s'", filename);
346 if (open(filename, O_RDONLY) != STDIN_FILENO)
347 perr("Open of jobfile `%s' failed", filename);
349 (void)unlink(filename);
377 * the first byte of the job filename, the date (in minutes since
449 * the files in there. If the filename indicates that the job