diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-03-02 20:06:23 +0000 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2008-03-02 20:06:23 +0000 |
commit | 9f18b7333ed1cad9a763221b7637fd6d5cc3b853 (patch) | |
tree | f90d3bcb5b256ebe23b51311a446c7dbff3dd961 /common | |
parent | 34bafcb9488b33cb313d992f7b14fb688e9f47a0 (diff) | |
download | gvfs-9f18b7333ed1cad9a763221b7637fd6d5cc3b853.tar.gz |
Treat DBus output paramaters that contain "" as NULL. It fixes the sftp
2008-03-02 Carlos Garcia Campos <carlosgc@gnome.org>
* common/gmountsource.c: (ask_password_reply):
Treat DBus output paramaters that contain "" as NULL. It fixes the
sftp backend when a username is provided by the user.
svn path=/trunk/; revision=1487
Diffstat (limited to 'common')
-rw-r--r-- | common/gmountsource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/gmountsource.c b/common/gmountsource.c index be9ff941..d7bfbb18 100644 --- a/common/gmountsource.c +++ b/common/gmountsource.c @@ -193,9 +193,9 @@ ask_password_reply (DBusMessage *reply, { data->aborted = aborted; - data->password = g_strdup (password); - data->username = g_strdup (username); - data->domain = g_strdup (domain); + data->password = *password == 0 ? NULL : g_strdup (password); + data->username = *username == 0 ? NULL : g_strdup (username); + data->domain = *domain == 0 ? NULL : g_strdup (domain); data->password_save = (GPasswordSave)password_save; /* TODO: handle more args */ |