aboutsummaryrefslogtreecommitdiff
path: root/src/fstabinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fstabinfo.c')
-rw-r--r--src/fstabinfo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fstabinfo.c b/src/fstabinfo.c
index 08c2b0b9..9782f9da 100644
--- a/src/fstabinfo.c
+++ b/src/fstabinfo.c
@@ -29,8 +29,6 @@
* SUCH DAMAGE.
*/
-#define APPLET "fstabinfo"
-
#include <errno.h>
#include <getopt.h>
#include <libgen.h>
@@ -89,6 +87,8 @@ static struct mntent *getmntfile (const char *file)
}
#endif
+static const char *applet;
+
#include "_usage.h"
#define getoptstring "bmop:t:" getoptstring_COMMON
static struct option longopts[] = {
@@ -129,6 +129,8 @@ int fstabinfo (int argc, char **argv)
char *file;
bool filtered = false;
+ applet = basename (argv[0]);
+
/* Ensure that we are only quiet when explicitly told to be */
unsetenv ("EINFO_QUIET");