On 08/28/2017 06:52 PM, Reuben Thomas wrote:
> In locate.c, the following line contains a double comma which should
> be a single comma (checked against current git):
> 
>    * setuid-access-controlled database,, since that could cause a leak

Thanks for the report - fixed with the attached patch (not yet pushed).

Have a nice day,
Berny
>From 971d3422b6eae20d07f1b0148c51a6699c83fddc Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <m...@bernhard-voelker.de>
Date: Mon, 28 Aug 2017 22:46:24 +0200
Subject: [PATCH] maint: fix typo in comment

* locate/locate.c (dolocate): Change a double comma to a
single one: s/,,/,/

Reported by Reuben Thomas in
http://lists.gnu.org/archive/html/bug-findutils/2017-08/msg00023.html
---
 locate/locate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/locate/locate.c b/locate/locate.c
index e4e9254..a471c66 100644
--- a/locate/locate.c
+++ b/locate/locate.c
@@ -1595,7 +1595,7 @@ dolocate (int argc, char **argv, int secure_db_fd)
   print_quoted_filename = true;
 
   /* We cannot simultaneously trust $LOCATE_PATH and use the
-   * setuid-access-controlled database,, since that could cause a leak
+   * setuid-access-controlled database, since that could cause a leak
    * of private data.
    */
   user_selected_locate_path = getenv ("LOCATE_PATH");
-- 
2.1.4

Reply via email to