]> granicus.if.org Git - sudo/commitdiff
Be consistent with error message when regcomp() fails.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Apr 2013 19:41:09 +0000 (15:41 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Apr 2013 19:41:09 +0000 (15:41 -0400)
plugins/sudoers/sudoreplay.c

index b911cb1feb80ec53e9a7e5635032c64d32e71b60..b41c9358f8cf5455913c223b48e68861741ecbea 100644 (file)
@@ -1055,7 +1055,7 @@ list_sessions(int argc, char **argv, const char *pattern, const char *user,
     if (pattern) {
        re = &rebuf;
        if (regcomp(re, pattern, REG_EXTENDED|REG_NOSUB) != 0)
-           errorx(1, _("invalid regex: %s"), pattern);
+           errorx(1, _("invalid regular expression: %s"), pattern);
     }
 #else
     re = (char *) pattern;