Skip to content

Commit ed591d3

Browse files
committed
valid_path: clarify CWD error message with respect to '*' usage
The directory for CWD must either begin with a '/' or '~', or be the special value "*". Issue #522
1 parent 8781032 commit ed591d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/sudoers/defaults.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ valid_path(const struct sudoers_context *ctx, const struct sudo_defs_types *def,
11891189
if (ISSET(def->type, T_CHPATH)) {
11901190
if (val[0] != '/' && val[0] != '~' && (val[0] != '*' || val[1] != '\0')) {
11911191
defaults_warnx(ctx, file, line, column, quiet,
1192-
N_("values for \"%s\" must start with a '/', '~', or '*'"),
1192+
N_("values for \"%s\" must begin with a '/' or '~', or be '*'"),
11931193
def->name);
11941194
ret = false;
11951195
}

0 commit comments

Comments
 (0)