From 6bdd1e85ac15f287f13305204c7f5b7af032a497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 14 Aug 2020 11:32:50 +0200 Subject: [PATCH] Displayed the plugin path in the basic help message The ntfs-3g plugin directory depends on the distribution and may be difficult to determine. This displays the directory in the basic help. --- src/lowntfs-3g.c | 5 ++++- src/ntfs-3g.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 04fbef65..a58c1c1a 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -270,8 +270,11 @@ static const char *usage_msg = " umask=, fmask=, dmask=, streams_interface=.\n" " Please see the details in the manual (type: man ntfs-3g).\n" "\n" -"Example: ntfs-3g /dev/sda1 /mnt/windows\n" +"Example: lowntfs-3g /dev/sda1 /mnt/windows\n" "\n" +#ifdef PLUGIN_DIR +"Plugin path: " PLUGIN_DIR "\n\n" +#endif /* PLUGIN_DIR */ "%s"; static const char ntfs_bad_reparse[] = "unsupported reparse point"; diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index eb91797e..fdb42948 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -207,6 +207,9 @@ static const char *usage_msg = "\n" "Example: ntfs-3g /dev/sda1 /mnt/windows\n" "\n" +#ifdef PLUGIN_DIR +"Plugin path: " PLUGIN_DIR "\n\n" +#endif /* PLUGIN_DIR */ "%s"; static const char ntfs_bad_reparse[] = "unsupported reparse point";