Lines Matching refs:optarg
73 check_inverse(optarg, &invert, &optind, 0);
74 if ((pwd = getpwnam(optarg)))
77 ownerinfo->uid = strtoul(optarg, &end, 0);
78 if (*end != '\0' || end == optarg)
79 exit_error(PARAMETER_PROBLEM, "Bad OWNER UID value `%s'", optarg);
88 check_inverse(optarg, &invert, &optind, 0);
89 if ((grp = getgrnam(optarg)))
92 ownerinfo->gid = strtoul(optarg, &end, 0);
93 if (*end != '\0' || end == optarg)
94 exit_error(PARAMETER_PROBLEM, "Bad OWNER GID value `%s'", optarg);
103 check_inverse(optarg, &invert, &optind, 0);
104 ownerinfo->pid = strtoul(optarg, &end, 0);
105 if (*end != '\0' || end == optarg)
106 exit_error(PARAMETER_PROBLEM, "Bad OWNER PID value `%s'", optarg);
114 check_inverse(optarg, &invert, &optind, 0);
115 ownerinfo->sid = strtoul(optarg, &end, 0);
116 if (*end != '\0' || end == optarg)
117 exit_error(PARAMETER_PROBLEM, "Bad OWNER SID value `%s'", optarg);
126 check_inverse(optarg, &invert, &optind, 0);
127 if(strlen(optarg) > sizeof(ownerinfo->comm))
128 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %d characters", optarg, sizeof(ownerinfo->comm));
130 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm));