s3-registry: remove some unused headers.
[amitay/samba.git] / source3 / registry / reg_api_regf.c
index 394e31afcfa470d9f6c17944b3a57eca026f0a6b..3625fc4cabe3c42be195cb80a60ed7f85db2c8ba 100644 (file)
@@ -25,7 +25,6 @@
 #include "regfio.h"
 #include "reg_util_internal.h"
 #include "reg_dispatcher.h"
-#include "reg_objects.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_REGISTRY
@@ -278,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) ));