if (strcasecmp(key, "OWNER") == 0) {
valid = 1;
- if (rules->resolve_names) {
+ if (rules->resolve_names && (!strchr(value, '$') && !strchr(value, '%'))) {
char *endptr;
strtoul(value, &endptr, 10);
if (endptr[0] != '\0') {
if (strcasecmp(key, "GROUP") == 0) {
valid = 1;
- if (rules->resolve_names) {
+ if (rules->resolve_names && (!strchr(value, '$') && !strchr(value, '%'))) {
char *endptr;
strtoul(value, &endptr, 10);
if (endptr[0] != '\0') {