summaryrefslogtreecommitdiff
path: root/waagent
diff options
context:
space:
mode:
Diffstat (limited to 'waagent')
-rw-r--r--waagent4
1 files changed, 2 insertions, 2 deletions
diff --git a/waagent b/waagent
index 980157d..9a681aa 100644
--- a/waagent
+++ b/waagent
@@ -456,7 +456,7 @@ def NoLog(message):
def LogIfVerbose(message):
if Verbose == True:
- LogFileWithPrefix('',message)
+ LogWithPrefix('',message)
def LogWithPrefixIfVerbose(prefix, message):
if Verbose == True:
@@ -2423,7 +2423,7 @@ def DeleteRootPassword():
ReplaceFileContentsAtomic(filepath, "root:*LOCK*:14600::::::\n" + "\n".join(filter(lambda a: not
a.startswith("root:"),
GetFileContents(filepath).split('\n'))))
- os.chmod(filepath, 0000)
+ os.chmod(filepath, 0640)
if IsRedHat():
Run("chcon system_u:object_r:shadow_t:s0 " + filepath)
Log("Root password deleted.")