[gnome-control-center/gnome-3-8] printers: Don't authenticate automatically found SMB servers
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] printers: Don't authenticate automatically found SMB servers
- Date: Mon, 17 Jun 2013 14:54:56 +0000 (UTC)
commit 3d41bebe1daa5a3b2ba71481d3c71a018970ec30
Author: Marek Kasik <mkasik redhat com>
Date: Fri Jun 14 16:51:08 2013 +0200
printers: Don't authenticate automatically found SMB servers
Ask for auth info just for SMB servers typed in the search entry.
https://bugzilla.gnome.org/show_bug.cgi?id=698532
panels/printers/pp-samba.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/pp-samba.c b/panels/printers/pp-samba.c
index b8b47e7..99538be 100644
--- a/panels/printers/pp-samba.c
+++ b/panels/printers/pp-samba.c
@@ -345,7 +345,7 @@ list_dir (SMBCCTX *smb_context,
smbclient_opendir = smbc_getFunctionOpendir (smb_context);
dir = smbclient_opendir (smb_context, dirname);
- if (!dir && errno == EACCES)
+ if (!dir && errno == EACCES && data->hostname_set)
{
smbc_setFunctionAuthDataWithContext (smb_context, auth_fn);
dir = smbclient_opendir (smb_context, dirname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]