Subject: Missing mode to open() call with O_CREAT
Author: James Westby <james.westby@canonical.com>
Bug-Debian: http://bugs.debian.org/507044

--- a/ifgate/flock.c
+++ b/ifgate/flock.c
@@ -15,7 +15,7 @@ char *fn;
 
 	if (fn)
 	{
-		if ((lfd=open(fn,O_RDWR | O_CREAT)) < 0)
+		if ((lfd=open(fn,O_RDWR | O_CREAT,0600)) < 0)
 		{
 			logerr("$Error opening file %s",fn);
 			return -1;
