<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>how should it be fixed for glusterfs now? Better shell code
      without bashishm or do you want /bin/bash as shebang?<br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Weitergeleitete Nachricht --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Betreff:
            </th>
            <td>Bug#873878: glusterfs-client: mount.glusterfs needs bash
              as /bin/sh</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Weitersenden-Datum:
            </th>
            <td>Thu, 31 Aug 2017 20:21:01 +0000</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Weitersenden-Von:
            </th>
            <td>Michael Lundkvist <a class="moz-txt-link-rfc2396E" href="mailto:brels.debian@solske.net">&lt;brels.debian@solske.net&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Weitersenden-An:
            </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:debian-bugs-dist@lists.debian.org">debian-bugs-dist@lists.debian.org</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Weitersenden-CC:
            </th>
            <td>Patrick Matthäi <a class="moz-txt-link-rfc2396E" href="mailto:pmatthaei@debian.org">&lt;pmatthaei@debian.org&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Datum: </th>
            <td>Thu, 31 Aug 2017 21:46:18 +0200</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Von: </th>
            <td>Michael Lundkvist <a class="moz-txt-link-rfc2396E" href="mailto:brels.debian@solske.net">&lt;brels.debian@solske.net&gt;</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Antwort
              an: </th>
            <td>Michael Lundkvist <a class="moz-txt-link-rfc2396E" href="mailto:brels.debian@solske.net">&lt;brels.debian@solske.net&gt;</a>,
              <a class="moz-txt-link-abbreviated" href="mailto:873878@bugs.debian.org">873878@bugs.debian.org</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">An: </th>
            <td>Debian Bug Tracking System
              <a class="moz-txt-link-rfc2396E" href="mailto:submit@bugs.debian.org">&lt;submit@bugs.debian.org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>Package: glusterfs-client
Version: 3.12.0-1
Severity: serious
Tags: upstream
Justification: Policy 10.4

Version 3.12 of Glusterfs adds code in /sbin/mount.glusterfs that depends on bash.

With dash as /bin/sh, I get the following error message when trying to mount a glusterfs volume:
&gt; /sbin/mount.glusterfs: 667: /sbin/mount.glusterfs: Bad substitution

Line 667 is:
    667             [ ${volume_str:0:1} = '/' ] &amp;&amp; {

Modifying mount.glusterfs to use /bin/bash makes it possible to mount again.

/Micke


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages glusterfs-client depends on:
ii  fuse              2.9.7-1
ii  glusterfs-common  3.12.0-1
ii  libc6             2.24-17
ii  libssl1.1         1.1.0f-5
ii  python            2.7.13-2

glusterfs-client recommends no packages.

glusterfs-client suggests no packages.

-- no debconf information
</pre>
    </div>
  </body>
</html>