mirror of
https://github.com/samba-team/samba.git
synced 2025-10-21 03:33:16 +03:00
s3: Fix bug 7470
S_IREAD and S_IWRITE are not standard. Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
This commit is contained in:
@@ -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) ));
|
||||
|
Reference in New Issue
Block a user