summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOla x Nilsson <ola.x.nilsson@axis.com>2024-03-11 07:57:18 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-03-15 17:17:20 +0000
commit1482ea31acdfc29cb6c4199073d0dff6a39bf41b (patch)
treee51a392371aebe249e5d042a1de252b72a2f77ca
parentb8d6bd833e9086fcde427583d4543cde51e1374e (diff)
downloadmeta-virtualization-1482ea31acdfc29cb6c4199073d0dff6a39bf41b.tar.gz
diod: Update to b4b5e8e00ed11b21d7fcf05a080dc054a8eac2d6
Just needs a single patch to handle the lua feature in configure when cross-compiling. f732f19 auto.diod.in: remove bashisms 7e0df4c build: Update ax_compiler_vendor.m4 from autoconf-archive 2023.02.20 7e56831 build: Update ax_lua.m4 from autoconf-archive 2023.02.20 76c7c18 build: Install diod.service and auto.diod without install-data-local af5972f build: Add missing , to AS_CASE in configure.ac 6cbbacf diodmount: update man page with privport option 3777ea1 libdiod: Support ipv6 in diod_sock_connect ddf6071 libdiod: Set global options on exports specified on 1db9e57 libdiod: support privport on ipv6 ae7c536 diodmount: Add option to set privport 66652bf diod: allow walk on open fids 2822ea6 tests: disable open-walk test 56f24b2 diod: fix incompatible-pointer-types warning ab03b7f utils/diodls: fix error-format warnings 84d4e51 github: extend build matrix to include ubuntu18 203b4c7 README: reference SPDX identifier d5444ce license: update 9p.h kernel header 0a5c80e license: update npfs source headers 88350f3 license: update license header to abbreivated one 57a621d protocol: fix plan9 manual links ee95dd9 tests/misc: fix distcheck problems d8e1e67 README: update dependencies 5425713 ci: install lua interpreter as prereq 25bebfb build: add configure --disable-config e7f9df9 build: fix lua detection 3eabd5d ci: create build matrix with clang, gcc 20ca897 build: conditional use of gcc warning flags is broken 16f8da4 build: turn all compiler warnings into errors 59bdaa1 tests/kern/tfcntl3: drop dead code 7a0f557 tests/kern/tfcntl2: drop dead code dd4d4c0 tests/kern/misc: ignore stringop-truncation warnings 3a05837 tests/kern/fsx: ignore unused-result warnings c918476 tests/kern/postmark: ignore format-overflow warn b20268c tests/kern/fsx: fix incorrect message 7ee5b68 tests/kern/pathwalk: check snprintf return value 657dc10 diod: use readdir(3) in ioctx_readdir() cba3834 diod: normalize whitespace in ioctx_readdir_r() 3e8ed95 diod: use readdir() not deprecated readdir_r() 194416d diod: define _DEFAULT_SOURCE not _BSD_SOURCE ddcbd3b diodmount: initialized variable 698d055 diodmount: check system() return value 787994e build: suppress liblsd errors 192229f build: enable automake "maintainer mode" 0086b9b libnpfs: don't call snprintf() with NULL %s arg 620792d ci: add basic github workflow 530e2d5 move main.yml into the correct directory 783cb8c ci: add github workflow stub c7eccf9 ci: drop travis config ff26333 Use PKG_CHECK_MODULES for ncurses, drop legacy curses 91d8966 Silence warnings when compiling with clang 3bb5798 Increase diod server maximum msize setting to 1MB 896f37c Add option to disable hostname lookups cdd12f2 Remove empty README c2cd87c Document IPv6 address format 899306b diod: Add support for IPv6 addresses 1878ce9 diodmount: Add support for IPv6 addresses 82b819f Splits the package in diod, and diod-utils. cf33c8e Fixes spec file for systemd build on CentOS 7. 9af7d94 Travis-ci: added support for ppc64le 550ba49 document the FreeBSD changes bfe6c4b implement impersonation on FreeBSD c28286f restore user-linux.c from user-linux-0.c 2624b4f copy user-linux.c to user-freebsd.c f4ae6ef save a copy of user-linux.c as user-linux-0.c 228c2d2 minor cleanup in liblsd/hostlist.c f325ad5 fix the help message e20572a finish the split of user.c 11ed83c remove non-shared code from user.c 929276d move common code from user.c out of the way 7d3d01a leave only a stub in user-stub.c d7abf6f create user-stub.c from user.c 828cf89 remove non-Linux bits from user-linux.c 3eb807c create user-linux.c from user.c 490d7bc add a setting to configure access=user API 243b0b3 disable diodmount and tests except on Linux 1ece6d7 make building tests configurable a3610ca make building diodmount configurable 13eace1 do not special-case Linux to do the same thing 33cd2b0 FreeBSD does not have ENODATA e6ecd06 remove unused ifdefs 42958d2 check for missing defines directly 244adc7 use autoconf to detect headers f3b9cae small fixes for FreeBSD 73fe9a6 Update protocol.md f0f7d0d Fix systemd unit dir and file permissions 81eef82 Fix autoconf failure: Ensure m4 macro inclusion ca1b0f5 Place systemd unit into $(libdir)/systemd/system 5551dbc libnpclient/read.c: fix out-of-bounds write 50bc4ea libdiod/diod_sock.c: zero initialize sockaddr 1d40ba5 diod/ops.c: distinguish opened and unopened Fids in {set,get}attr d1d31c9 diod/ioctx.c: add stat, chmod, chown, truncate, utimensat 6749db3 diod/ops.c: disallow walk on opened fids f1f1b38 tests/user: add tests for operations on opened fids 6fbe656 tests: fix xattr test build d3946ca tests: check for daemon user ff730b1 Fix typo in P9_TRENAME format 9690086 add git to debian dependencies 0498089 diod/ops.c: add header file for makedev 043f1ea cleanup: remove files that should not have been committed 0dd51c5 travis-ci: begin building under travis fb191b7 tests/kern: avoid use of relative paths 47c63b0 tests/user: avoid use of relative paths 320eb5a tests/misc: avoid use of relative paths 74bfd84 test/misc: include test.h in dist target 89fb32d tests/kern/dbench: fix distcheck problem d6881e0 build: fix source references in tests/misc 2379e20 build: include from $(srcdir) not relative path f86b24e test/user: skip t18,19 if xattr not enabled fc02397 test/user/attach: reduce number of threads 2f92e04 cleanup: drop trailing whitespace from test source f958117 build: drop META f33d72a libnpfs: use PACKAGE_NAME-PACKAGE_VERSION not META_ALIAS 5add7d2 dtop: show PACKAGE_VERSION not META_VERSION.RELEASE 3a51ec0 man: use PACKAGE not META macros 1fd1b11 spec: use PACKAGE not META macros cf3247a cleanup: drop trailing whitespace from source 7ca7f56 protocol.md: fix typos and markdown errors d04c39e README.md: trivial fixes 9d37f4a protocol.md: fix typos Change-Id: I5f06ccaa86f935d5f32a0800c0edb49b9d17b0ff Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/diod/diod_1.0.24.bb13
-rw-r--r--recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch50
-rw-r--r--recipes-extended/diod/files/0001-build-allow-builds-to-work-with-separate-build-dir.patch126
-rw-r--r--recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch37
-rw-r--r--recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch51
-rw-r--r--recipes-extended/diod/files/0002-auto.diod.in-remove-bashisms.patch47
6 files changed, 55 insertions, 269 deletions
diff --git a/recipes-extended/diod/diod_1.0.24.bb b/recipes-extended/diod/diod_1.0.24.bb
index 2b87a8ae..5e191dc0 100644
--- a/recipes-extended/diod/diod_1.0.24.bb
+++ b/recipes-extended/diod/diod_1.0.24.bb
@@ -9,22 +9,19 @@ LICENSE = "GPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" 9LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
10 10
11PV = "1.0.24+git" 11PV = "1.0.24+git"
12SRCREV = "0ea3fe3d829b5085307cd27a512708d99ef48199" 12SRCREV = "b4b5e8e00ed11b21d7fcf05a080dc054a8eac2d6"
13SRC_URI = "git://github.com/chaos/diod.git;protocol=https;branch=master \ 13SRC_URI = "git://github.com/chaos/diod.git;protocol=https;branch=master \
14 file://diod \ 14 file://diod \
15 file://diod.conf \ 15 file://diod.conf \
16 file://0001-build-allow-builds-to-work-with-separate-build-dir.patch \ 16 file://0001-build-Find-lua-with-pkg-config.patch \
17 file://0002-auto.diod.in-remove-bashisms.patch \ 17 "
18 file://0001-diod-ops.c-add-header-file-for-makedev.patch \
19 file://0001-drod-add-option-to-config-systemddir.patch \
20 "
21DEPENDS = "libcap ncurses tcp-wrappers lua" 18DEPENDS = "libcap ncurses tcp-wrappers lua"
22 19
23EXTRA_OECONF = "--with-systemddir=${systemd_unitdir}/system" 20EXTRA_OEMAKE += "systemddir=${systemd_unitdir}/system"
24 21
25S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
26 23
27inherit autotools systemd 24inherit autotools pkgconfig systemd
28 25
29do_install:append () { 26do_install:append () {
30 # install our init based on start-stop-daemon 27 # install our init based on start-stop-daemon
diff --git a/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch b/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch
new file mode 100644
index 00000000..9f61792a
--- /dev/null
+++ b/recipes-extended/diod/files/0001-build-Find-lua-with-pkg-config.patch
@@ -0,0 +1,50 @@
1From 8124eec4e59222f1c3f3dc4d7e6706e13c33755c Mon Sep 17 00:00:00 2001
2From: Ola x Nilsson <olani@axis.com>
3Date: Wed, 6 Mar 2024 18:40:16 +0100
4Subject: [PATCH] build: Find lua with pkg-config
5
6ax_lua.m4 does not support cross compilation.
7
8Upstream-Status: Inappropriate (Embedded specific)
9
10---
11 configure.ac | 26 +++++++++++++++++++++++++-
12 1 file changed, 25 insertions(+), 1 deletion(-)
13
14diff --git a/configure.ac b/configure.ac
15index e8fcdb2..f3ebdc5 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -121,7 +121,31 @@ AC_ARG_ENABLE([config],
19 [AS_HELP_STRING([--disable-config], [disable lua config file support])])
20
21 AS_IF([test "x$enable_config" != "xno"], [
22- AX_PROG_LUA([5.1],[5.5])
23+ dnl Use pkg_config to check for lua settings. This is not standard
24+ dnl as lua typically does not distribute a pc file. The
25+ dnl OpenEmbedded recipe adds one that can be used. Reuse/replicate
26+ dnl as much of AX_PROG_LUA as possible so AX_LUA_HEADERS and
27+ dnl AX_LUA_LIBS are still usable.
28+ PKG_CHECK_EXISTS([lua], [
29+ AS_IF([
30+ $PKG_CONFIG --atleast-version=5.1 lua && $PKG_CONFIG --max-version=5.5 lua
31+ ],[
32+ AC_ARG_VAR([LUA], [The LUA interpreter, e.g. /usr/bin/lua5.1])
33+ dnl should really check that the file exists ...
34+ AC_SUBST([LUA], [${bindir}/lua])
35+ AC_CACHE_CHECK([for $LUA version], [ax_cv_lua_version], [
36+ ax_cv_lua_version=[`$PKG_CONFIG --modversion lua | $SED 's/^\([0-9]\+\.[0-9]\+\).*/\1/'`]
37+ ])
38+ AS_IF([test "x$ax_cv_lua_version" = 'x'],
39+ [AC_MSG_ERROR([invalid Lua version number])])
40+ AC_SUBST([LUA_VERSION], [$ax_cv_lua_version])
41+ AC_SUBST([LUA_SHORT_VERSION], [`echo "$LUA_VERSION" | $SED 's|\.||'`])
42+ ],[
43+ AC_MSG_ERROR([Incorrect lua version])
44+ ])
45+ ],[
46+ AX_PROG_LUA([5.1],[5.5])
47+ ])
48 AX_LUA_HEADERS([],[
49 AC_MSG_ERROR([Install lua headers or configure with --disable-config])
50 ])
diff --git a/recipes-extended/diod/files/0001-build-allow-builds-to-work-with-separate-build-dir.patch b/recipes-extended/diod/files/0001-build-allow-builds-to-work-with-separate-build-dir.patch
deleted file mode 100644
index f40e0eb5..00000000
--- a/recipes-extended/diod/files/0001-build-allow-builds-to-work-with-separate-build-dir.patch
+++ /dev/null
@@ -1,126 +0,0 @@
1From 43403468298ef4167baa5d84de2ee2eaf7f4007a Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Fri, 9 Jan 2015 18:34:04 +0000
4Subject: [PATCH 1/2] build: allow builds to work with separate build dir
5
6Remove assumptions in include paths that assume the build
7is happening in the source directories.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12---
13 diod/Makefile.am | 2 +-
14 libdiod/Makefile.am | 2 +-
15 liblsd/Makefile.am | 2 +-
16 libnpclient/Makefile.am | 2 +-
17 scripts/Makefile.am | 6 +++---
18 tests/kern/dbench/Makefile.am | 4 ++--
19 utils/Makefile.am | 2 +-
20 7 files changed, 10 insertions(+), 10 deletions(-)
21
22diff --git a/diod/Makefile.am b/diod/Makefile.am
23index 7644be7..fdaf130 100644
24--- a/diod/Makefile.am
25+++ b/diod/Makefile.am
26@@ -1,7 +1,7 @@
27 AM_CFLAGS = @GCCWARN@
28
29 AM_CPPFLAGS = \
30- -I../libnpfs -I../liblsd -I../libdiod
31+ -I$(srcdir)/../libnpfs -I$(srcdir)/../liblsd -I$(srcdir)/../libdiod
32
33 sbin_PROGRAMS = diod
34
35diff --git a/libdiod/Makefile.am b/libdiod/Makefile.am
36index 4810e14..6905cdd 100644
37--- a/libdiod/Makefile.am
38+++ b/libdiod/Makefile.am
39@@ -1,7 +1,7 @@
40 AM_CFLAGS = @GCCWARN@
41
42 AM_CPPFLAGS = \
43- -I../libnpfs -I../libnpclient -I../liblsd
44+ -I$(srcdir)/../libnpfs -I$(srcdir)/../libnpclient -I$(srcdir)/../liblsd
45
46 noinst_LIBRARIES = libdiod.a
47
48diff --git a/liblsd/Makefile.am b/liblsd/Makefile.am
49index c3e5658..7e18bf8 100644
50--- a/liblsd/Makefile.am
51+++ b/liblsd/Makefile.am
52@@ -1,6 +1,6 @@
53 AM_CFLAGS = @GCCWARN@
54
55-AM_CPPFLAGS = -I../libdiod
56+AM_CPPFLAGS = -I$(srcdir)/../libdiod
57
58 noinst_LIBRARIES = liblsd.a
59
60diff --git a/libnpclient/Makefile.am b/libnpclient/Makefile.am
61index 5305df9..cbaf266 100644
62--- a/libnpclient/Makefile.am
63+++ b/libnpclient/Makefile.am
64@@ -1,7 +1,7 @@
65 AM_CFLAGS = @GCCWARN@
66
67 AM_CPPFLAGS = \
68- -I../libnpfs
69+ -I$(srcdir)/../libnpfs
70
71 noinst_LIBRARIES = libnpclient.a
72
73diff --git a/scripts/Makefile.am b/scripts/Makefile.am
74index 51c24a3..2aba728 100644
75--- a/scripts/Makefile.am
76+++ b/scripts/Makefile.am
77@@ -1,9 +1,9 @@
78-systemddir=$(sysconfdir)/systemd/system
79+systemddir=/lib/systemd/system
80
81 install-data-local:
82- $(top_srcdir)/config/install-sh -m 755 $(srcdir)/auto.diod \
83+ $(top_srcdir)/config/install-sh -m 755 ./auto.diod \
84 $(DESTDIR)$(sysconfdir)/auto.diod
85- $(top_srcdir)/config/install-sh -m 755 $(srcdir)/diod.service \
86+ $(top_srcdir)/config/install-sh -m 644 ./diod.service \
87 $(DESTDIR)$(systemddir)/diod.service
88
89 uninstall-local:
90diff --git a/tests/kern/dbench/Makefile.am b/tests/kern/dbench/Makefile.am
91index e0cdefa..1704f9f 100644
92--- a/tests/kern/dbench/Makefile.am
93+++ b/tests/kern/dbench/Makefile.am
94@@ -2,7 +2,7 @@ AM_CFLAGS = -w
95
96 # VERSION=4.00
97
98-AM_CPPFLAGS = -DDATADIR=\"$(X_DATADIR)\"
99+AM_CPPFLAGS = -I. -DDATADIR=\"$(X_DATADIR)\"
100
101 LDADD = $(LIBPOPT)
102
103@@ -25,6 +25,6 @@ BUILT_SOURCES = proto.h
104 CLEANFILES = proto.h
105
106 proto.h: $(dbench_SOURCES) mkproto.pl
107- perl mkproto.pl $(dbench_SOURCES) > proto.h
108+ $(srcdir)/mkproto.pl $(patsubst %,$(srcdir),$(dbench_SOURCES)) > proto.h
109
110 EXTRA_DIST = mkproto.pl
111diff --git a/utils/Makefile.am b/utils/Makefile.am
112index 169b6c4..91d571d 100644
113--- a/utils/Makefile.am
114+++ b/utils/Makefile.am
115@@ -1,7 +1,7 @@
116 AM_CFLAGS = @GCCWARN@
117
118 AM_CPPFLAGS = \
119- -I../libnpfs -I../liblsd -I../libdiod -I../libnpclient
120+ -I$(srcdir)/../libnpfs -I$(srcdir)/../liblsd -I$(srcdir)/../libdiod -I$(srcdir)/../libnpclient
121
122 sbin_PROGRAMS = diodmount diodcat dtop diodload diodls diodshowmount dioddate
123
124--
1252.11.0
126
diff --git a/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch b/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch
deleted file mode 100644
index 49bc507b..00000000
--- a/recipes-extended/diod/files/0001-diod-ops.c-add-header-file-for-makedev.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From f75836731d6051d85e6317eb4c12465bafb4973e Mon Sep 17 00:00:00 2001
2From: "Hongzhi.Song" <hongzhi.song@windriver.com>
3Date: Fri, 31 Aug 2018 05:47:02 -0400
4Subject: [PATCH] diod/ops.c: add header file for makedev
5
6Error:
7diod/ops.c:845: undefined reference to `makedev'
8
9Fixed:
10Glibc removes sys/sysmacros.h which defines makedev from sys/types.h
11since v2.28. [Commit ID: e16deca62e16f]
12
13And then glibc suggestions us to include <sys/sysmacros.h> directly if
14code needs it.
15
16Upstream-Status: Submitted
17
18Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
19---
20 diod/ops.c | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/diod/ops.c b/diod/ops.c
24index c6c8291..469a502 100644
25--- a/diod/ops.c
26+++ b/diod/ops.c
27@@ -74,6 +74,7 @@
28 #include <pthread.h>
29 #include <errno.h>
30 #include <sys/types.h>
31+#include <sys/sysmacros.h>
32
33 #ifdef __FreeBSD__
34 #if !__BSD_VISIBLE
35--
362.8.1
37
diff --git a/recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch b/recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch
deleted file mode 100644
index 4931a19b..00000000
--- a/recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 365159534b1981dfe291ecc05d2455f32652a166 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 26 Aug 2019 18:00:39 +0800
4Subject: [PATCH] drod: add option to config systemddir
5
6Not need to send upstream, since upstream have refactor
7related code, but not released. and this version release
84 years ago, not proper to just backport one or more
9commits, this patch maybe could be dropped after upgrade.
10
11Upstream-Status: Inappropriate [embedded specific]
12
13Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15 configure.ac | 9 +++++++++
16 scripts/Makefile.am | 2 +-
17 2 files changed, 10 insertions(+), 1 deletion(-)
18
19diff --git a/configure.ac b/configure.ac
20index 1cb8579..3e4a5ec 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -25,6 +25,15 @@ AC_DEFINE([_GNU_SOURCE], 1,
24 [Define _GNU_SOURCE so that we get all necessary prototypes])
25
26 ##
27+#Add option to config systemddir
28+##
29+AC_ARG_WITH([systemddir],
30+ [AS_HELP_STRING([--with-systemddir=DIR], [systemd dir])],
31+ [systemddir=$withval],
32+ [systemddir="/lib/systemd/system"])
33+AC_SUBST([systemddir], [$systemddir])
34+
35+##
36 # Checks for programs
37 ##
38 AC_PROG_CC
39diff --git a/scripts/Makefile.am b/scripts/Makefile.am
40index 2aba728..40822b7 100644
41--- a/scripts/Makefile.am
42+++ b/scripts/Makefile.am
43@@ -1,4 +1,4 @@
44-systemddir=/lib/systemd/system
45+systemddir=@systemddir@
46
47 install-data-local:
48 $(top_srcdir)/config/install-sh -m 755 ./auto.diod \
49--
502.7.4
51
diff --git a/recipes-extended/diod/files/0002-auto.diod.in-remove-bashisms.patch b/recipes-extended/diod/files/0002-auto.diod.in-remove-bashisms.patch
deleted file mode 100644
index 13e0a86e..00000000
--- a/recipes-extended/diod/files/0002-auto.diod.in-remove-bashisms.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 5a9e09dc5de833db11607530351cd87cecbfd17e Mon Sep 17 00:00:00 2001
2From: Roy Li <rongqing.li@windriver.com>
3Date: Thu, 22 Jun 2017 06:32:30 +0000
4Subject: [PATCH 2/2] auto.diod.in: remove bashisms
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Roy Li <rongqing.li@windriver.com>
9---
10 scripts/auto.diod.in | 14 +++++++-------
11 1 file changed, 7 insertions(+), 7 deletions(-)
12
13diff --git a/scripts/auto.diod.in b/scripts/auto.diod.in
14index f63e004..4d5fc3a 100755
15--- a/scripts/auto.diod.in
16+++ b/scripts/auto.diod.in
17@@ -1,4 +1,4 @@
18-#!/bin/bash
19+#!/bin/sh
20 #
21 # auto.diod - executable automounter map for diod file systems
22 #
23@@ -41,15 +41,15 @@ dcatopts="${DIOD_TIMEOUT:+-t $DIOD_TIMEOUT}"
24 for server in $DIOD_SERVERS; do
25 $DIOD_DIODCAT -s $server $dcatopts exports | awk '{print $1}' |\
26 while read path; do
27- if [ "$path" == "/" ]; then
28- if [ "$key" == "ROOT" ]; then
29+ if [ "$path" = "/" ]; then
30+ if [ "$key" = "ROOT" ]; then
31 echo "$prefix $server:$path"
32 exit 0
33 fi
34- elif [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//./g')" ] \
35- || [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//_/g')" ] \
36- || [ "$key" == "$(echo $path|sed -e's/^\///' -e's/\//-/g')" ] \
37- || [ "$key" == "$(basename $path)" ]; then
38+ elif [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//./g')" ] \
39+ || [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//_/g')" ] \
40+ || [ "$key" = "$(echo $path|sed -e's/^\///' -e's/\//-/g')" ] \
41+ || [ "$key" = "$(basename $path)" ]; then
42 echo "$prefix $server:$path"
43 exit 0
44 fi
45--
462.11.0
47