aboutsummaryrefslogtreecommitdiff
path: root/src/fstabinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-18 18:01:05 +0000
committerRoy Marples <roy@marples.name>2007-12-18 18:01:05 +0000
commit47887ac7c340639c9c6b7bf4379a1940f3e01b6c (patch)
treec5febe0cf89b4088aa5ce3b648b153cb85752a8b /src/fstabinfo.c
parent437363a3449423173bc94746a122fbf3b4cf254c (diff)
usage now requires a global applet var instead of a define, don't prefix describe output and use generic usage for runscript.
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");