OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dea2903
)
cifs: fix FILE_BOTH_DIRECTORY_INFO definition
author
Eugene Korenevsky
<ekorenevsky@astralinux.ru>
Tue, 11 Jan 2022 08:36:50 +0000
(11:36 +0300)
committer
Steve French
<stfrench@microsoft.com>
Sat, 15 Jan 2022 16:08:47 +0000
(10:08 -0600)
The size of FILE_BOTH_DIRECTORY_INFO.ShortName must be 24 bytes, not 12
(see MS-FSCC documentation).
Signed-off-by: Eugene Korenevsky <ekorenevsky@astralinux.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifspdu.h
patch
|
blob
|
history
diff --git
a/fs/cifs/cifspdu.h
b/fs/cifs/cifspdu.h
index
d2ff438
..
68b9a43
100644
(file)
--- a/
fs/cifs/cifspdu.h
+++ b/
fs/cifs/cifspdu.h
@@
-2560,7
+2560,7
@@
typedef struct {
__le32 EaSize; /* length of the xattrs */
__u8 ShortNameLength;
__u8 Reserved;
- __u8 ShortName[
12
];
+ __u8 ShortName[
24
];
char FileName[1];
} __attribute__((packed)) FILE_BOTH_DIRECTORY_INFO; /* level 0x104 FFrsp data */