summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_registry.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 10:56:58 -0700
committerVolker Lendecke <vl@samba.org>2010-09-25 10:59:15 -0700
commite81db37a87b83b6ff10ab513eb4a4d06a2c20b17 (patch)
tree27b1fcbbd118870da83900313395d9b909f67fe3 /source3/utils/net_rpc_registry.c
parent85ba79063f35b5a073b3670b82daa2aa6dfb40bb (diff)
downloadsamba-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/utils/net_rpc_registry.c')
-rw-r--r--source3/utils/net_rpc_registry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index e10ba008df..5b9f887b33 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;
}