Lines Matching defs:logfile
69 static int cachemgr_set_lf(admin_t *ptr, char *logfile);
349 (void) strcpy(current_admin.logfile, LOGFILE);
387 (void) strlcpy(current_admin.logfile,
388 optarg, sizeof (current_admin.logfile));
446 if (strlen(current_admin.logfile) == 0)
450 (void) strcpy(current_admin.logfile, LOGFILE);
453 current_admin.logfile);
471 if (strlen(current_admin.logfile) == 0)
472 (void) strcpy(current_admin.logfile, "/dev/null");
474 current_admin.logfile);
977 cachemgr_set_lf(admin_t *ptr, char *logfile)
986 if (logfile == NULL || *logfile == 0) {
988 } else if (strcmp(logfile, "/dev/null") == 0) {
989 (void) strcpy(current_admin.logfile, "/dev/null");
994 open(logfile, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
1004 if (lstat(logfile, &before) < 0) {
1005 logit("Cannot open new logfile \"%s\": %sn",
1006 logfile, strerror(errno));
1013 open(logfile,
1015 logit("Cannot open new logfile "
1017 logfile, strerror(errno));
1021 logit("Cannot use specified logfile "
1023 "owned by root\n", logfile);
1027 (void) strlcpy(ptr->logfile, logfile, sizeof (ptr->logfile));
1030 logit("Starting ldap_cachemgr, logfile %s\n", logfile);
1097 if ((cachemgr_set_lf(¤t_admin, new->logfile) < 0) ||
1164 (void) printf(gettext("server log file\t\"%s\"\n"), ptr->logfile);