[SCM] Samba Shared Repository - branch v3-6-test updated

Karolin Seeger kseeger at samba.org
Wed Oct 26 11:40:24 MDT 2011


The branch, v3-6-test has been updated
       via  d27f5a2 Fix bug #8542 - smbclient posix_open command fails to return correct info on open file.
      from  074b946 Third part of fix for bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit d27f5a277ef47c5ff94e402930680b37e8f4d592
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Oct 21 18:08:46 2011 -0700

    Fix bug #8542 - smbclient posix_open command fails to return correct info on open file.

-----------------------------------------------------------------------

Summary of changes:
 source3/client/client.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/client/client.c b/source3/client/client.c
index e5426c6..b2cb911 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2528,8 +2528,8 @@ static int cmd_posix_open(void)
 	}
 
 	if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDWR, mode, &fnum))) {
-		if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDONLY, mode, &fnum))) {
-			d_printf("posix_open file %s: for read/write fnum %d\n", targetname, fnum);
+		if (NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDONLY, mode, &fnum))) {
+			d_printf("posix_open file %s: for readonly fnum %d\n", targetname, fnum);
 		} else {
 			d_printf("Failed to open file %s. %s\n", targetname, cli_errstr(cli));
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list