s3-registry: remove some unused headers.
[amitay/samba.git] / source3 / registry / reg_api_regf.c
index 8f249b5aa74190de19526df4ae75e16789b8de81..3625fc4cabe3c42be195cb80a60ed7f85db2c8ba 100644 (file)
 
 #include "includes.h"
 #include "registry.h"
+#include "reg_api_regf.h"
 #include "reg_cachehook.h"
 #include "regfio.h"
 #include "reg_util_internal.h"
 #include "reg_dispatcher.h"
-#include "reg_objects.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_REGISTRY
@@ -277,7 +277,7 @@ static WERROR backup_registry_key(struct registry_key_handle *krecord,
        /* open the registry file....fail if the file already exists */
 
        regfile = regfio_open(fname, (O_RDWR|O_CREAT|O_EXCL),
-                             (S_IREAD|S_IWRITE));
+                             (S_IRUSR|S_IWUSR));
        if (regfile == NULL) {
                DEBUG(0,("backup_registry_key: failed to open \"%s\" (%s)\n",
                         fname, strerror(errno) ));