diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mount/mount.c | 2 | ||||
-rw-r--r-- | utils/mount/mount_config.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 909fedf..355df79 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -475,7 +475,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", diff --git a/utils/mount/mount_config.h b/utils/mount/mount_config.h index 2af9f9d..9a885a9 100644 --- a/utils/mount/mount_config.h +++ b/utils/mount/mount_config.h @@ -16,14 +16,15 @@ * */ -inline void mount_config_init(void); +inline void mount_config_init(char *); #ifdef MOUNT_CONFIG #include "conffile.h" extern char *conf_get_mntopts(char *, char *, char *); -inline void mount_config_init() +inline void mount_config_init(char *program) { + xlog_open(program); /* * Read the the default mount options */ @@ -36,7 +37,7 @@ inline char *mount_config_opts(char *spec, } #else /* MOUNT_CONFIG */ -inline void mount_config_init() { } +inline void mount_config_init(char *program) { } inline char *mount_config_opts(char *spec, char *mount_point, char *mount_opts) |