]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bsys.c typo
authorKern Sibbald <kern@sibbald.com>
Fri, 27 Feb 2004 10:10:47 +0000 (10:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 27 Feb 2004 10:10:47 +0000 (10:10 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1093 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/bsys.c

index 0f1100d74f8369b3bc1ae489168db4151b94d579..4ddb3f4c0029eb1c2fa931dcbd7aab1eef6f3f1f 100644 (file)
@@ -317,7 +317,7 @@ void create_pid_file(char *dir, const char *progname, int port)
       unlink(mp_chr(fname));                 /* remove stale pid file */
    }
    /* Create new pid file */
-   if ((pidfd = open(mp_chr(fname), O_CREAT|[CTRUNC|O_WRONLY|O_BINARY, 0644)) >= 0) {
+   if ((pidfd = open(mp_chr(fname), O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, 0644)) >= 0) {
       len = sprintf(pidbuf, "%d\n", (int)getpid());
       write(pidfd, pidbuf, len);
       close(pidfd);