From 0509ce3f664f856c026cb6bae373bc5a62097f4f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 19 Apr 2009 13:01:20 +0000 Subject: [PATCH] Ignore files ending in '~' in sudo.d (emacs backup files) --- sudoers.pod | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sudoers.pod b/sudoers.pod index 4c790ce97..17c11296d 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -477,15 +477,16 @@ into as part of package installation. For example, given: #includedir /etc/sudoers.d -B will read each file in F, skipping files -that contain a C<.> character to avoid causing problems with package -manager, B or editor temporary files. Files are parsed in -sorted lexical order. That is, F will be -parsed before F. Be aware that because -the sorting is lexical, not numeric, F -would be loaded B F. Using a -consistent number of leading zeroes in the file names can be used -to avoid such problems. +B will read each file in F, skipping file +names that end in C<~> or contain a C<.> character to avoid causing +problems with package manager or editor temporary/backup files. +Files are parsed in sorted lexical order. That is, +F will be parsed before +F. Be aware that because the sorting is +lexical, not numeric, F would be loaded +B F. Using a consistent number +of leading zeroes in the file names can be used to avoid such +problems. Note that unlike files included via C<#include>, B will not edit the files in a C<#includedir> directory unless one of them -- 2.40.0