mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
Rename mdfind to mdsearch
GNUstep as an mdfind binary, and both should be co-instalable. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14431 Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Björn Baumbach <bb@sernet.de> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Mar 29 16:18:54 UTC 2021 on sn-devel-184
This commit is contained in:
parent
942c0d2128
commit
359c6bd210
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
|
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
|
||||||
<refentry id="mdfind.1">
|
<refentry id="mdsearch.1">
|
||||||
|
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>mdfind</refentrytitle>
|
<refentrytitle>mdsearch</refentrytitle>
|
||||||
<manvolnum>1</manvolnum>
|
<manvolnum>1</manvolnum>
|
||||||
<refmiscinfo class="source">Samba</refmiscinfo>
|
<refmiscinfo class="source">Samba</refmiscinfo>
|
||||||
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>mdfind</refname>
|
<refname>mdsearch</refname>
|
||||||
<refpurpose>Run Spotlight searches against an SMB server</refpurpose>
|
<refpurpose>Run Spotlight searches against an SMB server</refpurpose>
|
||||||
</refnamediv>
|
</refnamediv>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
|
<para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
|
||||||
<manvolnum>1</manvolnum></citerefentry> suite.</para>
|
<manvolnum>1</manvolnum></citerefentry> suite.</para>
|
||||||
|
|
||||||
<para>mdfind is a simple utility to run Spotlight searches against an SMB server
|
<para>mdsearch is a simple utility to run Spotlight searches against an SMB server
|
||||||
that runs the Spotlight <emphasis>mdssvc</emphasis> RPC service.</para>
|
that runs the Spotlight <emphasis>mdssvc</emphasis> RPC service.</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
@ -143,6 +143,6 @@
|
|||||||
Andrew Tridgell. Samba is now developed by the Samba Team as an Open
|
Andrew Tridgell. Samba is now developed by the Samba Team as an Open
|
||||||
Source project similar to the way the Linux kernel is developed.</para>
|
Source project similar to the way the Linux kernel is developed.</para>
|
||||||
|
|
||||||
<para>The mdfind manpage was written by Ralph Boehme.</para>
|
<para>The mdsearch manpage was written by Ralph Boehme.</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
</refentry>
|
</refentry>
|
@ -19,7 +19,7 @@ manpages='''
|
|||||||
manpages/libsmbclient.7
|
manpages/libsmbclient.7
|
||||||
manpages/lmhosts.5
|
manpages/lmhosts.5
|
||||||
manpages/log2pcap.1
|
manpages/log2pcap.1
|
||||||
manpages/mdfind.1
|
manpages/mdsearch.1
|
||||||
manpages/mvxattr.1
|
manpages/mvxattr.1
|
||||||
manpages/net.8
|
manpages/net.8
|
||||||
manpages/nmbd.8
|
manpages/nmbd.8
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Blackbox tests for mdfind
|
# Blackbox tests for mdsearch
|
||||||
#
|
#
|
||||||
# Copyright (C) Ralph Boehme 2019
|
# Copyright (C) Ralph Boehme 2019
|
||||||
#
|
#
|
||||||
@ -17,7 +17,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
"""Blackbox test for mdfind"""
|
"""Blackbox test for mdsearch"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
@ -95,8 +95,8 @@ class MdfindBlackboxTests(BlackboxTestCase):
|
|||||||
self.server.server_activate()
|
self.server.server_activate()
|
||||||
self.server.serve_forever()
|
self.server.serve_forever()
|
||||||
|
|
||||||
def test_mdfind(self):
|
def test_mdsearch(self):
|
||||||
"""Simple blackbox test for mdfind"""
|
"""Simple blackbox test for mdsearch"""
|
||||||
|
|
||||||
username = os.environ["USERNAME"]
|
username = os.environ["USERNAME"]
|
||||||
password = os.environ["PASSWORD"]
|
password = os.environ["PASSWORD"]
|
||||||
@ -123,7 +123,7 @@ class MdfindBlackboxTests(BlackboxTestCase):
|
|||||||
self.server.json_in = json_in.replace("%BASEPATH%", self.sharepath)
|
self.server.json_in = json_in.replace("%BASEPATH%", self.sharepath)
|
||||||
self.server.json_out = json_out.replace("%BASEPATH%", self.sharepath)
|
self.server.json_out = json_out.replace("%BASEPATH%", self.sharepath)
|
||||||
|
|
||||||
output = self.check_output("mdfind -s %s -U %s%%%s fileserver spotlight '*==\"samba*\"'" % (config, username, password))
|
output = self.check_output("mdsearch -s %s -U %s%%%s fileserver spotlight '*==\"samba*\"'" % (config, username, password))
|
||||||
|
|
||||||
actual = output.decode('utf-8').splitlines()
|
actual = output.decode('utf-8').splitlines()
|
||||||
expected = ["%s/%s" % (self.sharepath, file) for file in testfiles]
|
expected = ["%s/%s" % (self.sharepath, file) for file in testfiles]
|
@ -90,7 +90,7 @@ int main(int argc, char **argv)
|
|||||||
long_options,
|
long_options,
|
||||||
POPT_CONTEXT_KEEP_FIRST);
|
POPT_CONTEXT_KEEP_FIRST);
|
||||||
|
|
||||||
poptSetOtherOptionHelp(pc, "mdfind [OPTIONS] <server> <share> <query>\n");
|
poptSetOtherOptionHelp(pc, "mdsearch [OPTIONS] <server> <share> <query>\n");
|
||||||
|
|
||||||
while ((opt = poptGetNextOpt(pc)) != -1) {
|
while ((opt = poptGetNextOpt(pc)) != -1) {
|
||||||
DBG_ERR("Invalid option %s: %s\n",
|
DBG_ERR("Invalid option %s: %s\n",
|
@ -313,8 +313,8 @@ bld.SAMBA3_BINARY('smbstatus',
|
|||||||
CONN_TDB
|
CONN_TDB
|
||||||
''')
|
''')
|
||||||
|
|
||||||
bld.SAMBA3_BINARY('mdfind',
|
bld.SAMBA3_BINARY('mdsearch',
|
||||||
source='mdfind.c',
|
source='mdsearch.c',
|
||||||
deps='''
|
deps='''
|
||||||
talloc
|
talloc
|
||||||
tevent
|
tevent
|
||||||
|
@ -959,7 +959,7 @@ planoldpythontestsuite("ad_dc_ntvfs",
|
|||||||
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
||||||
planoldpythontestsuite("none", "samba.tests.loadparm")
|
planoldpythontestsuite("none", "samba.tests.loadparm")
|
||||||
planoldpythontestsuite("fileserver",
|
planoldpythontestsuite("fileserver",
|
||||||
"samba.tests.blackbox.mdfind",
|
"samba.tests.blackbox.mdsearch",
|
||||||
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
||||||
planoldpythontestsuite("fileserver",
|
planoldpythontestsuite("fileserver",
|
||||||
"samba.tests.blackbox.smbcacls_basic")
|
"samba.tests.blackbox.smbcacls_basic")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user