Lines Matching refs:optarg
65 check_inverse(optarg, &invert, &optind, 0);
67 if ((pwd = getpwnam(optarg)))
70 ownerinfo->uid = strtoul(optarg, &end, 0);
71 if (*end != '\0' || end == optarg)
72 exit_error(PARAMETER_PROBLEM, "Bad OWNER UID value `%s'", optarg);
81 check_inverse(optarg, &invert, &optind, 0);
82 if ((grp = getgrnam(optarg)))
85 ownerinfo->gid = strtoul(optarg, &end, 0);
86 if (*end != '\0' || end == optarg)
87 exit_error(PARAMETER_PROBLEM, "Bad OWNER GID value `%s'", optarg);
96 check_inverse(optarg, &invert, &optind, 0);
97 ownerinfo->pid = strtoul(optarg, &end, 0);
98 if (*end != '\0' || end == optarg)
99 exit_error(PARAMETER_PROBLEM, "Bad OWNER PID value `%s'", optarg);
107 check_inverse(optarg, &invert, &optind, 0);
108 ownerinfo->sid = strtoul(optarg, &end, 0);
109 if (*end != '\0' || end == optarg)
110 exit_error(PARAMETER_PROBLEM, "Bad OWNER SID value `%s'", optarg);
119 check_inverse(optarg, &invert, &optind, 0);
120 if(strlen(optarg) > sizeof(ownerinfo->comm))
121 exit_error(PARAMETER_PROBLEM, "OWNER CMD `%s' too long, max %d characters", optarg, sizeof(ownerinfo->comm));
123 strncpy(ownerinfo->comm, optarg, sizeof(ownerinfo->comm));