aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2009-02-12 07:11:33 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2009-02-12 07:11:33 +0000
commitb1fa0408fb5810e5024f3e657706111a2054f8b5 (patch)
tree25bc621489131ddcee00921f3e6621df2931c81a /sshfs.c
parent09e37d536f767afd894429a951ec8eecf8d1a776 (diff)
downloadsshfs-b1fa0408fb5810e5024f3e657706111a2054f8b5.tar
sshfs-b1fa0408fb5810e5024f3e657706111a2054f8b5.tar.gz
sshfs-b1fa0408fb5810e5024f3e657706111a2054f8b5.tar.bz2
sshfs-b1fa0408fb5810e5024f3e657706111a2054f8b5.zip
* Print usage information and version to stdout, not stderr.
Libfuse also needs to be fixed up. Reported by Kārlis Repsons
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshfs.c b/sshfs.c
index 07c3cf9..85d3967 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -2827,7 +2827,7 @@ static struct fuse_cache_operations sshfs_oper = {
static void usage(const char *progname)
{
- fprintf(stderr,
+ printf(
"usage: %s [user@]host:[dir] mountpoint [options]\n"
"\n"
"general options:\n"
@@ -2844,7 +2844,7 @@ static void usage(const char *progname)
" -o sshfs_sync synchronous writes\n"
" -o no_readahead synchronous reads (no speculative readahead)\n"
" -o sshfs_debug print some debugging information\n"
-" -o cache=YESNO enable caching {yes,no} (default: yes)\n"
+" -o cache=BOOL enable caching {yes,no} (default: yes)\n"
" -o cache_timeout=N sets timeout for caches in seconds (default: 20)\n"
" -o cache_X_timeout=N sets timeout for {stat,dir,link} cache\n"
" -o workaround=LIST colon separated list of workarounds\n"
@@ -2942,7 +2942,7 @@ static int sshfs_opt_proc(void *data, const char *arg, int key,
exit(1);
case KEY_VERSION:
- fprintf(stderr, "SSHFS version %s\n", PACKAGE_VERSION);
+ printf("SSHFS version %s\n", PACKAGE_VERSION);
#if FUSE_VERSION >= 25
fuse_opt_add_arg(outargs, "--version");
sshfs_fuse_main(outargs);