Lines Matching refs:User
61 static char User[MAXLOGNAME], RealUser[MAXLOGNAME]; variable
106 if (!allowed(User)) { in main()
107 warnx("you (%s) are not allowed to use this program", User); in main()
141 (void) strncpy(User, pw->pw_name, (sizeof User)-1);
142 User[(sizeof User)-1] = '\0';
143 strcpy(RealUser, User);
158 (void) strncpy(User, pw->pw_name, (sizeof User)-1);
159 User[(sizeof User)-1] = '\0';
231 User, Filename, Options[(int)Option]))
268 log_it(RealUser, Pid, "LIST", User); in list_cmd()
269 (void) snprintf(n, sizeof(n), CRON_TAB(User)); in list_cmd()
272 errx(ERROR_EXIT, "no crontab for %s", User); in list_cmd()
290 (void)fprintf(stderr, "remove crontab for %s? ", User); in delete_cmd()
298 log_it(RealUser, Pid, "DELETE", User); in delete_cmd()
299 (void) snprintf(n, sizeof(n), CRON_TAB(User)); in delete_cmd()
302 errx(ERROR_EXIT, "no crontab for %s", User); in delete_cmd()
332 log_it(RealUser, Pid, "BEGIN EDIT", User);
333 (void) snprintf(n, sizeof(n), CRON_TAB(User));
337 warnx("no crontab for %s - using an empty one", User);
496 log_it(RealUser, Pid, "END EDIT", User);
607 (void) snprintf(n, sizeof(n), CRON_TAB(User));
614 log_it(RealUser, Pid, "REPLACE", User);