From 29fad38e9852ed40445ee1cd1cd588e9e9cf0bcf Mon Sep 17 00:00:00 2001 From: Gerhard Lausser Date: Fri, 26 Jan 2018 18:29:36 +0000 Subject: [PATCH] Update gpo.py This if will always fail because the string can't start with \\\\ and // at the same time --- python/samba/netcmd/gpo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py index 23b562eb635..c3a93e8ab75 100644 --- a/python/samba/netcmd/gpo.py +++ b/python/samba/netcmd/gpo.py @@ -221,7 +221,7 @@ def del_gpo_link(samdb, container_dn, gpo): def parse_unc(unc): '''Parse UNC string into a hostname, a service, and a filepath''' - if unc.startswith('\\\\') and unc.startswith('//'): + if not unc.startswith('\\\\') and not unc.startswith('//'): raise ValueError("UNC doesn't start with \\\\ or //") tmp = unc[2:].split('/', 2) if len(tmp) == 3: