From 7ed97d002687934ea46809487d1d967074aa008a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 27 Feb 2004 10:10:47 +0000 Subject: [PATCH] Fix bsys.c typo git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1093 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 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); -- 2.39.5