From: Kern Sibbald Date: Sun, 22 Feb 2004 22:19:36 +0000 (+0000) Subject: Add third argument to open() X-Git-Tag: Release-1.34.0~109 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fab20998eef05fd4ef3c0e21a6c409abf5dd5ab;p=bacula%2Fbacula Add third argument to open() git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1070 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;