[acassen/keepalived] 57f897: Improve checking of existance and readability of c...

Alexandre Cassen <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <5739b7f88cf67_b363feb5e9fd2b8859bb@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: 57f897d68637c3e697260287f0fc6bf96f73402a
      https://github.com/acassen/keepalived/commit/57f897d68637c3e697260287f0fc6bf96f73402a
  Author: Quentin Armitage <[email protected]>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M keepalived/core/main.c
    M lib/parser.c

  Log Message:
  -----------
  Improve checking of existance and readability of config files

There was no check of the return value from glob() in read_conf_file() and
check_conf_file(), so that if there were no matching files, they attempted
to use the uninitialised globbuf, with globbuf.gl_pathc taking a random value.

A further check has been added that the files returned are regular files.

Finally, if no config file name is specified check_conf_file() is now passed
the default config file name rather than null.

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: 384ebc3c9dd88abc204f775667bef99928ba43cb
      https://github.com/acassen/keepalived/commit/384ebc3c9dd88abc204f775667bef99928ba43cb
  Author: Alexandre Cassen <[email protected]>
  Date:   2016-05-16 (Mon, 16 May 2016)

  Changed paths:
    M keepalived/core/main.c
    M lib/parser.c

  Log Message:
  -----------
  Merge pull request #329 from pqarmitage/fixes

Improve checking of existance and readability of config files


Compare: https://github.com/acassen/keepalived/compare/1b1a1b274826...384ebc3c9dd8

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.