Lines Matching refs:optarg
67 check_inverse(optarg, &invert, &optind, 0);
68 if ((pwd = getpwnam(optarg)))
71 ownerinfo->uid = strtoul(optarg, &end, 0);
72 if (*end != '\0' || end == optarg)
73 exit_error(PARAMETER_PROBLEM, "Bad OWNER UID value `%s'", optarg);
82 check_inverse(optarg, &invert, &optind, 0);
83 if ((grp = getgrnam(optarg)))
86 ownerinfo->gid = strtoul(optarg, &end, 0);
87 if (*end != '\0' || end == optarg)
88 exit_error(PARAMETER_PROBLEM, "Bad OWNER GID value `%s'", optarg);
97 check_inverse(optarg, &invert, &optind, 0);
98 ownerinfo->pid = strtoul(optarg, &end, 0);
99 if (*end != '\0' || end == optarg)
100 exit_error(PARAMETER_PROBLEM, "Bad OWNER PID value `%s'", optarg);
108 check_inverse(optarg, &invert, &optind, 0);
109 ownerinfo->sid = strtoul(optarg, &end, 0);
110 if (*end != '\0' || end == optarg)
111 exit_error(PARAMETER_PROBLEM, "Bad OWNER SID value `%s'", optarg);
120 check_inverse(optarg, &invert, &optind, 0);
121 if(strlen(optarg) > sizeof(ownerinfo->comm))
122 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %u characters", optarg, (unsigned int)sizeof(ownerinfo->comm));
124 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm));