author | llornkcor <llornkcor> | 2005-08-14 21:45:59 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-14 21:45:59 (UTC) |
commit | 1dc2675c1bf557ba0032781535faf033809bae48 (patch) (unidiff) | |
tree | a949c816bc2fcc3213b38f4b5aed54254f7bd7c0 | |
parent | ab6f37a50ef2a0d95f25eff4a749bfcf39057d65 (diff) | |
download | opie-1dc2675c1bf557ba0032781535faf033809bae48.zip opie-1dc2675c1bf557ba0032781535faf033809bae48.tar.gz opie-1dc2675c1bf557ba0032781535faf033809bae48.tar.bz2 |
use shell script smbfind and not perl script findsmb
-rw-r--r-- | noncore/net/opie-smb/opie-smb.control | 2 | ||||
-rw-r--r-- | noncore/net/opie-smb/qsmb.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opie-smb/opie-smb.control b/noncore/net/opie-smb/opie-smb.control index 98a23b4..fc8c316 100644 --- a/noncore/net/opie-smb/opie-smb.control +++ b/noncore/net/opie-smb/opie-smb.control | |||
@@ -1,11 +1,11 @@ | |||
1 | Package: opie-smb | 1 | Package: opie-smb |
2 | Files: plugins/application/libopie-smb.so* bin/opie-smb pics/opie-smb apps/Applications/opie-smb.desktop | 2 | Files: plugins/application/libopie-smb.so* bin/opie-smb bin/smbfind pics/opie-smb apps/Applications/opie-smb.desktop |
3 | Version: $QPE_VERSION$EXTRAVERSION | 3 | Version: $QPE_VERSION$EXTRAVERSION |
4 | Architecture: arm | 4 | Architecture: arm |
5 | Arch: arm | 5 | Arch: arm |
6 | Maintainer: Kurt Korbatits (support@midget.net.au) | 6 | Maintainer: Kurt Korbatits (support@midget.net.au) |
7 | Section: Network | 7 | Section: Network |
8 | Priority: optional | 8 | Priority: optional |
9 | Description: Gui front end for samba utilities. | 9 | Description: Gui front end for samba utilities. |
10 | Source: | 10 | Source: |
11 | Depends: smbclient | 11 | Depends: smbclient |
diff --git a/noncore/net/opie-smb/qsmb.cpp b/noncore/net/opie-smb/qsmb.cpp index 527ab38..880573b 100644 --- a/noncore/net/opie-smb/qsmb.cpp +++ b/noncore/net/opie-smb/qsmb.cpp | |||
@@ -113,25 +113,25 @@ void Qsmb::scan() | |||
113 | if ((pipe = popen(cmd.latin1(), "r")) == NULL) { | 113 | if ((pipe = popen(cmd.latin1(), "r")) == NULL) { |
114 | snprintf(result, 256, "Error: Can't run %s", cmd.latin1()); | 114 | snprintf(result, 256, "Error: Can't run %s", cmd.latin1()); |
115 | TextViewOutput->append(result); | 115 | TextViewOutput->append(result); |
116 | return; | 116 | return; |
117 | } | 117 | } |
118 | while(fgets(result, 256, pipe) != NULL) { | 118 | while(fgets(result, 256, pipe) != NULL) { |
119 | strcpy( match, result); | 119 | strcpy( match, result); |
120 | match[5]='\0'; | 120 | match[5]='\0'; |
121 | break; | 121 | break; |
122 | } | 122 | } |
123 | owarn << "match: " << match << oendl; | 123 | owarn << "match: " << match << oendl; |
124 | 124 | ||
125 | cmd = "/usr/bin/findsmb"; | 125 | cmd = "smbfind"; |
126 | owarn <<"cmd: " << cmd << oendl; | 126 | owarn <<"cmd: " << cmd << oendl; |
127 | 127 | ||
128 | TextViewOutput->append(cmd); | 128 | TextViewOutput->append(cmd); |
129 | 129 | ||
130 | snprintf(lmhosts, 512, "echo '127.0.0.1 localhost'>/etc/samba/lmhosts"); | 130 | snprintf(lmhosts, 512, "echo '127.0.0.1 localhost'>/etc/samba/lmhosts"); |
131 | 131 | ||
132 | if ((pipe2 = popen(lmhosts, "r")) == NULL) { | 132 | if ((pipe2 = popen(lmhosts, "r")) == NULL) { |
133 | snprintf(result, 256, "Error: Can't run %s", lmhosts); | 133 | snprintf(result, 256, "Error: Can't run %s", lmhosts); |
134 | //TextViewOutput->append(result); | 134 | //TextViewOutput->append(result); |
135 | return; | 135 | return; |
136 | } | 136 | } |
137 | 137 | ||