[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-cifs-client
Subject:    [linux-cifs-client] patch to fix incorrect encoding of number of
From:       "Shirish Pargaonkar" <shirishpargaonkar () gmail ! com>
Date:       2008-02-11 5:40:04
Message-ID: 4a4634330802102140q72c29bddv3d2eceee3e9fbc65 () mail ! gmail ! com
[Download RAW message or body]

This patch fixes an error in cifs code, during chmod, set security
descriptor data is not
sent with little-endian encoding.

["cifsacl.numaces.patch" (text/x-patch)]

diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
index 842aaa9..6bc048f 100644
--- a/fs/cifs/cifsacl.c
+++ b/fs/cifs/cifsacl.c
@@ -436,7 +436,7 @@ static int set_chmod_dacl(struct cifs_ac
 					 &sid_everyone, nmode, S_IRWXO);
 
 	pndacl->size = cpu_to_le16(size + sizeof(struct cifs_acl));
-	pndacl->num_aces = 3;
+	pndacl->num_aces = cpu_to_le32(3);
 
 	return (0);
 }


_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@lists.samba.org
https://lists.samba.org/mailman/listinfo/linux-cifs-client


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic