"Print a stars at the password prompt when there is user input",
NULL,
}, {
- "simple_glob", T_FLAG,
- "Use simpler globbing that is less accurate but does not access the filesystem",
+ "fast_glob", T_FLAG,
+ "Use faster globbing that is less accurate but does not access the filesystem",
NULL,
}, {
NULL, 0, NULL
#define I_VISIBLEPW 69
#define def_pwstars (sudo_defs_table[70].sd_un.flag)
#define I_PWSTARS 70
-#define def_simple_glob (sudo_defs_table[71].sd_un.flag)
-#define I_SIMPLE_GLOB 71
+#define def_fast_glob (sudo_defs_table[71].sd_un.flag)
+#define I_FAST_GLOB 71
enum def_tupple {
never,
pwstars
T_FLAG
"Print a stars at the password prompt when there is user input"
-simple_glob
+fast_glob
T_FLAG
- "Use simpler globbing that is less accurate but does not access the filesystem"
+ "Use faster globbing that is less accurate but does not access the filesystem"
* If sudoers_cmnd has meta characters in it, we need to
* use glob(3) and/or fnmatch(3) to do the matching.
*/
- if (def_simple_glob)
+ if (def_fast_glob)
return(command_matches_fnmatch(sudoers_cmnd, sudoers_args));
return(command_matches_glob(sudoers_cmnd, sudoers_args));
}
set, falling back on the shell listed in the invoking user's
/etc/passwd entry if not). This flag is I<off> by default.
-=item simple_glob
+=item fast_glob
Normally, B<sudo> uses the L<glob(3)> function to do shell-style
globbing when matching pathnames. However, since it accesses the
file system, L<glob(3)> can take a long time to complete for some
patterns, especially when the pattern references a network file
-system that is mounted on demand (automounted). The I<simple_glob>
+system that is mounted on demand (automounted). The I<fast_glob>
option causes B<sudo> to use the L<fnmatch(3)> function, which does
-simpler matching that does not access the file system. The
-disadvantage of I<simple_glob> is that it is unable to match relative
-pathnames such as F<./ls> or F<../bin/ls>. This flag is I<off> by
-default.
+not access the file system to do its matching. The disadvantage
+of I<fast_glob> is that it is unable to match relative pathnames
+such as F<./ls> or F<../bin/ls>. This flag is I<off> by default.
=item stay_setuid