Skip to content
Snippets Groups Projects
Commit c44aa6c462d2 authored by jfp's avatar jfp
Browse files

Update rule1301, ignore disuser account

parent 3b1292db0572
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
from ovms import starlet
from ovms.rtl import lib
from ovms import user
from ovms import rmsdef, ossdef, ssdef
from ovms import rmsdef, ossdef, ssdef, uaidef
from ovms import itemList
from ovms.rtl.lib.FindFile import FindFile, file_exists
......@@ -17,5 +17,5 @@
with FindFile(fn, b'') as ifn:
ifn.__next__()
return 1
except StopIteration as e:
except StopIteration as _e:
return 3
......@@ -21,5 +21,5 @@
return 3
except VMSError as e:
except VMSError as _e:
return 2
......@@ -41,6 +41,9 @@
if not fmt:
print('skip default account', file=fo)
continue
# ignore disuser account
if u.flags & uaidef.UAI_M_DISACNT:
continue
fn: bytes = u.defdev + u.defdir + b'*.*'
if path_exists(fn) == 2:
if fmt:
......@@ -173,7 +176,7 @@
f: bytes
lgicmd = f
break
except VMSError as e:
except VMSError as _e:
continue
if lgicmd == b'' or not file_exists(lgicmd):
if fmt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment