sshfs uses current user is none specified
This commit is contained in:
parent
713e307f06
commit
f1740fdbbc
|
@ -4,6 +4,7 @@
|
||||||
added remove command to unmount and remove device safely
|
added remove command to unmount and remove device safely
|
||||||
added default_options_ntfs to udevil.conf
|
added default_options_ntfs to udevil.conf
|
||||||
[devmon 1.1.2] udevil clean on remove device #6
|
[devmon 1.1.2] udevil clean on remove device #6
|
||||||
|
sshfs uses current user is none specified
|
||||||
0.3.0 2012-07-13:
|
0.3.0 2012-07-13:
|
||||||
cifs,ftpfs dont quote username, double quote password #3
|
cifs,ftpfs dont quote username, double quote password #3
|
||||||
default udevil.conf: allow option flush
|
default udevil.conf: allow option flush
|
||||||
|
|
|
@ -2416,10 +2416,10 @@ static int parse_network_url( const char* url, const char* fstype,
|
||||||
nm->url = g_strdup( "none" );
|
nm->url = g_strdup( "none" );
|
||||||
else if ( !g_strcmp0( nm->fstype, "sshfs" ) )
|
else if ( !g_strcmp0( nm->fstype, "sshfs" ) )
|
||||||
nm->url = g_strdup_printf( "sshfs#%s%s%s%s%s:%s",
|
nm->url = g_strdup_printf( "sshfs#%s%s%s%s%s:%s",
|
||||||
nm->user ? nm->user : "",
|
nm->user ? nm->user : g_get_user_name(),
|
||||||
nm->pass ? ":" : "",
|
nm->pass ? ":" : "",
|
||||||
nm->pass ? nm->pass : "",
|
nm->pass ? nm->pass : "",
|
||||||
nm->user || nm->pass ? "@" : "",
|
"@", //nm->user || nm->pass ? "@" : "",
|
||||||
nm->host,
|
nm->host,
|
||||||
nm->path ? nm->path : "/" );
|
nm->path ? nm->path : "/" );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user