Lines Matching refs:User
47 static char User[MAXLOGNAME], RealUser[MAXLOGNAME]; variable
88 if (!allowed(User)) { in main()
89 warnx("you (%s) are not allowed to use this program", User); in main()
125 (void) strncpy(User, pw->pw_name, (sizeof User)-1); in parse_args()
126 User[(sizeof User)-1] = '\0'; in parse_args()
127 strcpy(RealUser, User); in parse_args()
142 (void) strncpy(User, pw->pw_name, (sizeof User)-1); in parse_args()
143 User[(sizeof User)-1] = '\0'; in parse_args()
215 User, Filename, Options[(int)Option])) in parse_args()
254 log_it(RealUser, Pid, "LIST", User); in list_cmd()
255 (void) snprintf(n, sizeof(n), CRON_TAB(User)); in list_cmd()
258 errx(ERROR_EXIT, "no crontab for %s", User); in list_cmd()
276 (void)fprintf(stderr, "remove crontab for %s? ", User); in delete_cmd()
284 log_it(RealUser, Pid, "DELETE", User); in delete_cmd()
285 if (snprintf(n, sizeof(n), CRON_TAB(User)) >= (int)sizeof(n)) in delete_cmd()
289 errx(ERROR_EXIT, "no crontab for %s", User); in delete_cmd()
317 log_it(RealUser, Pid, "BEGIN EDIT", User);
318 if (snprintf(n, sizeof(n), CRON_TAB(User)) >= (int)sizeof(n))
323 warnx("no crontab for %s - using an empty one", User);
482 log_it(RealUser, Pid, "END EDIT", User);
597 if (snprintf(n, sizeof(n), CRON_TAB(User)) >= (int)sizeof(n)) {
609 log_it(RealUser, Pid, "REPLACE", User);