Commit 6a307825 authored by Andrey Filippov's avatar Andrey Filippov

Trying to get BB_FILENAME

parent d9ccf3e3
......@@ -27,7 +27,7 @@ def revision_update(path,file):
# import getpass
pef = None # , preexec_fn=pefuid
if (os.getuid() == 0):
bb.warn(BB_FILENAME + " tried to access '" + path + "' as root, demoting to a normal user")
bb.warn(d.getVar("BB_FILENAME") + " tried to access '" + path + "' as root, demoting to a normal user")
#uname = os.getlogin()
# uname = getpass.getuser()
# with open("/etc/passwd") as f:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment