aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-01-09 19:48:14 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-01-09 19:48:14 +0000
commit88ab18b8f8ba9c1bad2b6239d5b9d46c9ce28bbc (patch)
tree11ef6752f4f7b0c9bab0a6cff9d5c904fe03858c
parent716bfbf697ed5e84284503e25aa36c7305437760 (diff)
downloadsshfs-88ab18b8f8ba9c1bad2b6239d5b9d46c9ce28bbc.tar
sshfs-88ab18b8f8ba9c1bad2b6239d5b9d46c9ce28bbc.tar.gz
sshfs-88ab18b8f8ba9c1bad2b6239d5b9d46c9ce28bbc.tar.bz2
sshfs-88ab18b8f8ba9c1bad2b6239d5b9d46c9ce28bbc.zip
release 1.0sshfs_1_0
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac2
-rw-r--r--sshfs.c8
3 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 40354aa..ae41d68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-09 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Released 1.0
+
2004-12-04 Miklos Szeredi <miklos@szeredi.hu>
* Started ChangeLog
diff --git a/configure.ac b/configure.ac
index 0f69693..f9545b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT(sshfs-fuse, 0.9)
+AC_INIT(sshfs-fuse, 1.0)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
diff --git a/sshfs.c b/sshfs.c
index a2d1671..262d7b3 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1197,6 +1197,7 @@ int main(int argc, char *argv[])
{
char *host = NULL;
char *port = NULL;
+ char *fsname;
int res;
int argctr;
int direct = 0;
@@ -1219,7 +1220,7 @@ int main(int argc, char *argv[])
port = argv[++argctr];
else {
fprintf(stderr, "missing argument to %s option\n", arg);
- fprintf(stderr, "see '%s -h' for usage\n", argv[0]);
+ fprintf(stderr, "see `%s -h' for usage\n", argv[0]);
exit(1);
}
break;
@@ -1238,10 +1239,11 @@ int main(int argc, char *argv[])
}
if (!host) {
fprintf(stderr, "missing host\n");
- fprintf(stderr, "see '%s -h' for usage\n", argv[0]);
+ fprintf(stderr, "see `%s -h' for usage\n", argv[0]);
exit(1);
}
+ fsname = g_strdup(host);
base_path = strchr(host, ':');
*base_path++ = '\0';
if (base_path[0] && base_path[strlen(base_path)-1] != '/')
@@ -1266,6 +1268,8 @@ int main(int argc, char *argv[])
exit(1);
newargv[newargc++] = "-omax_read=65536";
+ newargv[newargc++] = g_strdup_printf("-ofsname=sshfs#%s", fsname);
+ g_free(fsname);
newargv[newargc] = NULL;
return fuse_main(newargc, newargv, &sshfs_oper);
}