From 9fab20998eef05fd4ef3c0e21a6c409abf5dd5ab Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 22 Feb 2004 22:19:36 +0000 Subject: [PATCH] Add third argument to open() git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1070 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/bsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index f1ee04a5b3..96eab83660 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -374,7 +374,7 @@ void read_state_file(char *dir, const char *progname, int port) Mmsg(&fname, "%s/%s.%d.state", dir, progname, port); /* If file exists, see what we have */ - if ((sfd = open(mp_chr(fname), O_RDONLY)) < 0 || + if ((sfd = open(mp_chr(fname), O_RDONLY, 0)) < 0 || read(sfd, &hdr, sizeof(hdr)) < 0 || hdr.version != state_hdr.version) { goto bail_out; -- 2.39.5