Home | History | Annotate | Download | only in dist

Lines Matching defs:User

32 /* crontab - install and manage per-user crontab files
54 static char User[MAX_UNAME], RealUser[MAX_UNAME];
75 (void)fprintf(stderr, "usage:\t%s [-u user] file\n", getprogname());
76 (void)fprintf(stderr, "\t%s [-u user] [ -e | -l | -r ]\n", getprogname());
78 (void)fprintf(stderr, "\t-e\t(edit user's crontab)\n");
79 (void)fprintf(stderr, "\t-l\t(list user's crontab)\n");
80 (void)fprintf(stderr, "\t-r\t(delete user's crontab)\n");
109 User, getprogname());
190 if (strlen(pw->pw_name) >= sizeof User) {
193 (void)strlcpy(User, pw->pw_name, sizeof(User));
194 (void)strlcpy(RealUser, User, sizeof(RealUser));
211 errx(ERROR_EXIT, "user `%s' unknown", optarg);
213 if (strlen(optarg) >= sizeof User)
215 (void) strlcpy(User, optarg, sizeof(User));
280 Debug(DMISC, ("user=%s, file=%s, option=%s\n",
281 User, Filename, Options[(int)Option]));
316 log_it(RealUser, Pid, "LIST", User);
317 if (!glue_strings(n, sizeof n, SPOOL_DIR, User, '/')) {
322 errx(ERROR_EXIT, "no crontab for `%s'", User);
340 log_it(RealUser, Pid, "DELETE", User);
341 if (!glue_strings(n, sizeof n, SPOOL_DIR, User, '/')) {
346 errx(ERROR_EXIT, "no crontab for `%s'", User);
371 log_it(RealUser, Pid, "BEGIN EDIT", User);
372 if (!glue_strings(n, sizeof n, SPOOL_DIR, User, '/')) {
379 warnx("no crontab for `%s' - using an empty one", User);
561 log_it(RealUser, Pid, "END EDIT", User);
573 * XXX This is subject to a race condition--the user could
795 if (!glue_strings(n, sizeof n, SPOOL_DIR, User, '/')) {
806 log_it(RealUser, Pid, "REPLACE", User);
831 * returns TRUE if (allow_file exists and user is listed)
832 * or (deny_file exists and user is NOT listed).