r23346: Fix offline caching with XP/Vista. It was an off-by-one
authorJeremy Allison <jra@samba.org>
Mon, 4 Jun 2007 22:29:23 +0000 (22:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:08 +0000 (12:23 -0500)
in storing the access mask. I shouldn't have made this
mistake. Damn. Fixes bug #4673.
Jeremy
(This used to be commit 84801d4e83786b9de3d0875a317ca9ed8ff5b3e4)

source3/smbd/nttrans.c

index a1edc99bceb55881371ee51b89d07015ae6591e9..71e6dd47b46317b426dabe0f3e3e8cfe07f449fc 100644 (file)
@@ -420,7 +420,7 @@ static int do_ntcreate_pipe_open(connection_struct *conn,
        p += 4;
 
        if (flags & EXTENDED_RESPONSE_REQUIRED) {
-               p += 26;
+               p += 25;
                SIVAL(p,0,FILE_GENERIC_ALL);
                /* 
                 * For pipes W2K3 seems to return
@@ -950,7 +950,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
 
        if (flags & EXTENDED_RESPONSE_REQUIRED) {
                uint32 perms = 0;
-               p += 26;
+               p += 25;
                if (fsp->is_directory || can_write_to_file(conn, fname, &sbuf)) {
                        perms = FILE_GENERIC_ALL;
                } else {
@@ -1035,7 +1035,7 @@ static int do_nt_transact_create_pipe( connection_struct *conn, char *inbuf, cha
        p += 4;
        
        if (flags & EXTENDED_RESPONSE_REQUIRED) {
-               p += 26;
+               p += 25;
                SIVAL(p,0,FILE_GENERIC_ALL);
                /* 
                 * For pipes W2K3 seems to return
@@ -1631,7 +1631,7 @@ static int call_nt_transact_create(connection_struct *conn, char *inbuf, char *o
 
        if (flags & EXTENDED_RESPONSE_REQUIRED) {
                uint32 perms = 0;
-               p += 26;
+               p += 25;
                if (fsp->is_directory || can_write_to_file(conn, fname, &sbuf)) {
                        perms = FILE_GENERIC_ALL;
                } else {