]> www.vanbest.org Git - motioneye-debian/commitdiff
smbctl: explicitly add vers=1.0 when mounting shares
authorCalin Crisan <ccrisan@gmail.com>
Sun, 24 Jun 2018 13:35:25 +0000 (16:35 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 24 Jun 2018 13:35:25 +0000 (16:35 +0300)
This fixes issues with newer mount.cifs versions where the default is
no longer 1.0.

motioneye/smbctl.py

index 99319619e2f1d5d5fea077311edebbbe7f3ce29b..d58779438177cecdf996826bf5ae70448321bbe6 100644 (file)
@@ -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