#endif /* lint */
/*
- * Prototypes
+ * Returns TRUE if string 's' contains meta characters.
*/
-static int has_meta __P((char *));
+#define has_meta(s) (strpbrk(s, "\\?*[]") != NULL)
/*
* Check for user described by pw in a list of members.
return(FALSE);
}
-
-/*
- * Returns TRUE if "s" has shell meta characters in it,
- * else returns FALSE.
- */
-static int
-has_meta(s)
- char *s;
-{
- char *t;
-
- for (t = s; *t; t++) {
- if (*t == '\\' || *t == '?' || *t == '*' || *t == '[' || *t == ']')
- return(TRUE);
- }
- return(FALSE);
-}