Source

rsync_backup / smb.py

Diff from to

File smb.py

 license: BSD
 """
 
-from subprocess import check_call as cmd
+from exec_cmd import exec_shell as cmd
 
 
 SENDMSG = """echo "%(msg)s" | smbclient -U%(user)s%%%(password)s -M %(hostname)s"""
             user = "server" # it will say "message from <user> ..." in the popup
         if password is None:
             password = user
-    cmd(SENDMSG % dict(msg=msg, hostname=hostname, user=user, password=password),
-        shell=True)
+    cmd(SENDMSG % dict(msg=msg, hostname=hostname, user=user, password=password))