From: APTX Date: Fri, 6 Apr 2012 15:38:35 +0000 (-0400) Subject: Fix open call X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=9300d91a3957dc922d33d62f4ff3e77f4ae075b3;p=libferris.git Fix open call --- diff --git a/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp b/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp index d596350..c177e50 100644 --- a/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp +++ b/apps/oprocdeamon/ferris-out-of-proc-notification-deamon.cpp @@ -77,7 +77,7 @@ void writePID( pid_t pid = 0 ) stringstream ss; ss << pid; string path = TargetDir + "/pid"; - int fd = open( path.c_str(), O_WRONLY | O_CREAT | O_TRUNC ); + int fd = open( path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0777 ); write( fd, ss.str().c_str(), ss.str().length() ); close( fd );