[SCM] Samba Shared Repository - branch master updated
Volker Lendecke
vlendec at samba.org
Sat Sep 25 11:59:03 MDT 2010
The branch, master has been updated
via e81db37 s3: Fix bug 7470
from 85ba790 ldb: mark the location of a lot more ldb requests
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit e81db37a87b83b6ff10ab513eb4a4d06a2c20b17
Author: Volker Lendecke <vl at samba.org>
Date: Sat Sep 25 10:56:58 2010 -0700
s3: Fix bug 7470
S_IREAD and S_IWRITE are not standard.
Thanks to Joachim Schmitz <schmitz at hp.com> for reporting!
-----------------------------------------------------------------------
Summary of changes:
source3/registry/reg_api_regf.c | 2 +-
source3/utils/net_rpc_registry.c | 3 ++-
source3/utils/profiles.c | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/registry/reg_api_regf.c b/source3/registry/reg_api_regf.c
index 394e31a..b7a9522 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) ));
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index e10ba00..5b9f887 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -1267,7 +1267,8 @@ static int rpc_registry_copy(struct net_context *c, int argc, const char **argv
d_printf(_("ok\n"));
d_printf(_("Opening %s...."), argv[1]);
- if ( !(outfile = regfio_open( argv[1], (O_RDWR|O_CREAT|O_TRUNC), (S_IREAD|S_IWRITE) )) ) {
+ if ( !(outfile = regfio_open( argv[1], (O_RDWR|O_CREAT|O_TRUNC),
+ (S_IRUSR|S_IWUSR) )) ) {
d_fprintf(stderr, _("Failed to open %s for writing\n"),argv[1]);
goto out;
}
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 35b8911..6c6c7fd 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -279,7 +279,8 @@ int main( int argc, char *argv[] )
exit (1);
}
- if ( !(outfile = regfio_open( new_filename, (O_RDWR|O_CREAT|O_TRUNC), (S_IREAD|S_IWRITE) )) ) {
+ if ( !(outfile = regfio_open( new_filename, (O_RDWR|O_CREAT|O_TRUNC),
+ (S_IRUSR|S_IWUSR) )) ) {
fprintf( stderr, "Failed to open new file %s!\n", new_filename );
fprintf( stderr, "Error was (%s)\n", strerror(errno) );
exit (1);
--
Samba Shared Repository
More information about the samba-cvs
mailing list