From: Calin Crisan <ccrisan@gmail.com>
Date: Sun, 24 Jun 2018 13:35:25 +0000 (+0300)
Subject: smbctl: explicitly add vers=1.0 when mounting shares
X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=1bce4dd358774f69e52fa3814eeea54e9fc6b156;p=motioneye-debian

smbctl: explicitly add vers=1.0 when mounting shares

This fixes issues with newer mount.cifs versions where the default is
no longer 1.0.
---

diff --git a/motioneye/smbctl.py b/motioneye/smbctl.py
index 9931961..d587794 100644
--- a/motioneye/smbctl.py
+++ b/motioneye/smbctl.py
@@ -191,6 +191,8 @@ def _mount(server, share, username, password):
         opts = 'guest'
         sec_types = [None, 'none', 'ntlm', 'ntlmv2', 'ntlmv2i', 'ntlmsspi']
 
+    opts += ',vers=1.0'
+
     for sec in sec_types:
         if sec:
             actual_opts = opts + ',sec=' + sec