]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/mount.c
Added the sys/stat.h header file to a number of
[nfs-utils.git] / utils / mount / mount.c
index 909fedf8e0d2ba3abe96267170844efbb8bfa70f..82b9169a10462dad5f1efbdb55596878f17db10f 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <unistd.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
@@ -475,7 +476,7 @@ int main(int argc, char *argv[])
        spec = argv[1];
        mount_point = argv[2];
 
-       mount_config_init();
+       mount_config_init(progname);
 
        argv[2] = argv[0]; /* so that getopt error messages are correct */
        while ((c = getopt_long(argc - 2, argv + 2, "rvVwfno:hs",
@@ -593,6 +594,9 @@ int main(int argc, char *argv[])
        if (mnt_err == EX_BG) {
                printf(_("%s: backgrounding \"%s\"\n"),
                        progname, spec);
+               printf(_("%s: mount options: \"%s\"\n"),
+                       progname, extra_opts);
+
                fflush(stdout);
 
                /*