]> git.sur5r.net Git - bacula/bacula/commitdiff
Add third argument to open()
authorKern Sibbald <kern@sibbald.com>
Sun, 22 Feb 2004 22:19:36 +0000 (22:19 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 22 Feb 2004 22:19:36 +0000 (22:19 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1070 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/bsys.c

index f1ee04a5b3be706fb134cde9e083342edd2ad632..96eab836609eac3b7414159a279edeb51ef44194 100644 (file)
@@ -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;