From: Kern Sibbald Date: Fri, 27 Feb 2004 10:10:47 +0000 (+0000) Subject: Fix bsys.c typo X-Git-Tag: Release-7.0.0~9660 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ed97d002687934ea46809487d1d967074aa008a;p=bacula%2Fbacula Fix bsys.c typo git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1093 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c index 0f1100d74f..4ddb3f4c00 100644 --- a/bacula/src/lib/bsys.c +++ b/bacula/src/lib/bsys.c @@ -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);