Lines Matching defs:sp
674 char *sp, *ep, buf[MAXPATHLEN];
679 while ((sp = strsep(&src, ",")) != NULL) {
680 if (*sp == '\0')
692 li->li_number = (uid_t)strtol(sp, &ep, 0);
707 "Negative jail ID `%s'", sp);
715 "Negative /dev/pts tty `%s'", sp);
717 sp);
722 _PATH_DEV "pts/%s'", sp);
724 _PATH_DEV "pts/%s'", sp);
734 if ((pw = getpwnam(sp)) == NULL)
735 errx(STATUS_BADUSAGE, "Unknown user `%s'", sp);
739 if ((gr = getgrnam(sp)) == NULL)
740 errx(STATUS_BADUSAGE, "Unknown group `%s'", sp);
744 if (strcmp(sp, "-") == 0) {
747 } else if (strcmp(sp, "co") == 0) {
750 cp = sp;
762 errx(STATUS_BADUSAGE, "No such tty: `%s'", sp);
763 err(STATUS_ERROR, "Cannot access `%s'", sp);
766 errx(STATUS_BADUSAGE, "Not a tty: `%s'", sp);
773 if (strcmp(sp, "none") == 0)
775 else if (strcmp(sp, "any") == 0)
777 else if ((jid = jail_getid(sp)) != -1)
781 "Invalid jail ID or name `%s'", sp);
786 li->li_name = strdup(sp);