From 59dd46ef985a719579132efa6a9aa49bfeeae112 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Sat, 31 Mar 2012 14:28:06 -0400 Subject: better late than never, hm... --- .../core/tdelibs.old/fix-kerberos-printing.diff | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 opensuse/core/tdelibs.old/fix-kerberos-printing.diff (limited to 'opensuse/core/tdelibs.old/fix-kerberos-printing.diff') diff --git a/opensuse/core/tdelibs.old/fix-kerberos-printing.diff b/opensuse/core/tdelibs.old/fix-kerberos-printing.diff new file mode 100644 index 000000000..0276cdd06 --- /dev/null +++ b/opensuse/core/tdelibs.old/fix-kerberos-printing.diff @@ -0,0 +1,37 @@ +Index: kdeprint/management/smbview.cpp +=================================================================== +--- kdeprint/management/smbview.cpp.orig ++++ kdeprint/management/smbview.cpp +@@ -187,13 +187,26 @@ void SmbView::setOpen(QListViewItem *ite + } + else if (item->depth() == 1) + { // opening server ++ char *krb5ccname = getenv ("KRB5CCNAME"); + m_current = item; +- *m_proc << "smbclient -N -L "; +- *m_proc << KProcess::quote(item->text(0)); +- *m_proc << " -W "; +- *m_proc << KProcess::quote(item->parent()->text(0)); +- *m_proc << " -A "; +- *m_proc << KProcess::quote(m_passwdFile->name()); ++ if (krb5ccname) ++ { ++ *m_proc << "smbclient -k -N -L "; ++ } ++ else ++ { ++ *m_proc << "smbclient -N -L "; ++ } ++ *m_proc << KProcess::quote (item->text (0)); ++ *m_proc << " -W "; ++ *m_proc << KProcess::quote (item->parent ()-> ++ text (0)); ++ if (!krb5ccname) ++ { ++ *m_proc << " -A "; ++ *m_proc << KProcess:: ++ quote (m_passwdFile->name ()); ++ } + startProcess(ShareListing); + } + } -- cgit v1.2.3