diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-25 10:56:58 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-25 10:59:15 -0700 |
commit | e81db37a87b83b6ff10ab513eb4a4d06a2c20b17 (patch) | |
tree | 27b1fcbbd118870da83900313395d9b909f67fe3 /source3/registry | |
parent | 85ba79063f35b5a073b3670b82daa2aa6dfb40bb (diff) | |
download | samba-e81db37a87b83b6ff10ab513eb4a4d06a2c20b17.tar.gz samba-e81db37a87b83b6ff10ab513eb4a4d06a2c20b17.tar.bz2 samba-e81db37a87b83b6ff10ab513eb4a4d06a2c20b17.zip |
s3: Fix bug 7470
S_IREAD and S_IWRITE are not standard.
Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_api_regf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api_regf.c b/source3/registry/reg_api_regf.c index 394e31afcf..b7a9522fe5 100644 --- a/source3/registry/reg_api_regf.c +++ b/source3/registry/reg_api_regf.c @@ -278,7 +278,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) )); |