From 472bec2c86f7ac39a41a5fd9a1f151b9786ca3c8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 1 Oct 2020 00:00:04 +0200 Subject: [PATCH] Fix typo; plocate, not slocate. --- plocate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plocate.cpp b/plocate.cpp index 87c3c17..43cfab7 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -400,7 +400,7 @@ void do_search_file(const vector &needles, const char *filename) void usage() { // The help text comes from mlocate. - printf("Usage: slocate [OPTION]... PATTERN...\n"); + printf("Usage: plocate [OPTION]... PATTERN...\n"); printf(" -d, --database DBPATH use DBPATH instead of default database (which is\n"); printf(" %s)\n", dbpath); printf(" -h, --help print this help\n"); @@ -440,7 +440,7 @@ int main(int argc, char **argv) needles.push_back(argv[i]); } if (needles.empty()) { - fprintf(stderr, "slocate: no pattern to search for specified\n"); + fprintf(stderr, "plocate: no pattern to search for specified\n"); exit(0); } do_search_file(needles, dbpath); -- 2.39.2