Skip to content

Commit

Permalink
TCXB6-10197: Error in opening webpa_cfg.json
Browse files Browse the repository at this point in the history
Reason for change: Write permission for all - /nvram/webpa_cfg.json
Test Procedure: Verify that firmware version details to WebPA config file
Risks: Low

Signed-off-by: Indhuja Avinashi Valliammal Sivasamy <[email protected]>
  • Loading branch information
indhuja-avs authored Mar 24, 2022
1 parent 1c0ca13 commit 23722e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/broadband/webpa_notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ void loadCfgFile()
int flag = 0;
size_t sz;
fp = fopen(WEBPA_CFG_FILE, "r");
if (chmod(WEBPA_CFG_FILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) < 0)
{
WalError("Could not set mode 0666 on %s\n",WEBPA_CFG_FILE);
}
if (fp == NULL)
{
WalError("Failed to open cfg file in read mode creating new file %s\n", WEBPA_CFG_FILE);
Expand Down

0 comments on commit 23722e5

Please sign in to comment.