File sblim-cmpi-dhcp-0.5.5-open-missing-mode.patch of Package sblim-cmpi-dhcp
---
hashing/libuniquekey.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- hashing/libuniquekey.c.orig
+++ hashing/libuniquekey.c
@@ -506,7 +506,7 @@ int getUniqueKey(char * filepath, int li
LOG("getUniqueKey", "Forked - in the child process");
for (i=getdtablesize();i>=0;--i) /** close all the opened files for this process */
close(i);
- i=open(tmpfile, O_RDWR|O_CREAT|O_TRUNC);
+ i=open(tmpfile, O_RDWR|O_CREAT|O_TRUNC, 0600);
i = dup(i);
execlp("diff","diff", wbemname, filepath,(char *) 0); /** check if there exists any differences
between the copy of the config file and the