Bumped version number. More friendly error message with invalid arguments. Outputs GPL information before forking. - susmb - mounting of SMB/CIFS shares via FUSE
HTML git clone git://git.codemadness.org/susmb
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit abe38e627824e686da4c8aa101a1ac750ba9e2be
DIR parent 40ef6555471f3a59708239bdf86538f1cd5eae90
HTML Author: geoff <devnull@localhost>
Date: Mon, 8 May 2006 18:51:27 +0000
Bumped version number.
More friendly error message with invalid arguments.
Outputs GPL information before forking.
Diffstat:
M options.c | 6 ++++++
M usmb.c | 5 ++++-
M version.h | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
---
DIR diff --git a/options.c b/options.c
@@ -88,6 +88,12 @@ bool parse_args (int *argc, char ***argv,
bool ret = g_option_context_parse (context, argc, argv, &error);
g_option_context_free (context);
+ if (false == ret)
+ {
+ fprintf (stderr, "Try `%s --help' for more information\n", (*argv)[0]);
+ return false;
+ }
+
if (version)
{
show_version (stdout);
DIR diff --git a/usmb.c b/usmb.c
@@ -37,6 +37,7 @@
#include "usmb_dir.h"
#include "usmb_file.h"
#include "utils.h"
+#include "version.h"
static const char *share = NULL;
@@ -276,9 +277,11 @@ int main (int argc, char **argv)
return EXIT_FAILURE;
}
+ show_about (stdout);
+
int fuse_argc;
char **fuse_argv;
- build_fuse_args (options, mountpoint, &fuse_argc, &fuse_argv);
+ build_fuse_args (options, mountpoint, &fuse_argc, &fuse_argv);
int ret = fuse_main (fuse_argc, fuse_argv, &fuse_ops);
xfree (mountpoint);
DIR diff --git a/version.h b/version.h
@@ -21,7 +21,7 @@
#include <stdio.h>
- #define USMB_VERSION 0x20060507
+ #define USMB_VERSION 0x20060508
// a - alpha, b - beta, p - pre-release, s - stable
#define USMB_VERSION_STATUS 'a'