Commit d9ccf3e3 authored by Andrey Filippov's avatar Andrey Filippov

included recipe name in the warning message

parent f291514e
...@@ -27,7 +27,7 @@ def revision_update(path,file): ...@@ -27,7 +27,7 @@ def revision_update(path,file):
# import getpass # import getpass
pef = None # , preexec_fn=pefuid pef = None # , preexec_fn=pefuid
if (os.getuid() == 0): if (os.getuid() == 0):
bb.warn("Tried to access '"+path+"' as root, demoting to a normal user") bb.warn(BB_FILENAME + " tried to access '" + path + "' as root, demoting to a normal user")
#uname = os.getlogin() #uname = os.getlogin()
# uname = getpass.getuser() # uname = getpass.getuser()
# with open("/etc/passwd") as f: # 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