Skip to content

Commit ba39063

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb/client: map NT_STATUS_NOTIFY_ENUM_DIR
See MS-CIFS 2.2.2.4 STATUS_NOTIFY_ENUM_DIR. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 66dc58b commit ba39063

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

fs/smb/client/nterr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
const struct nt_err_code_struct nt_errs[] = {
1515
{"NT_STATUS_OK", NT_STATUS_OK},
1616
{"NT_STATUS_PENDING", NT_STATUS_PENDING},
17+
{"NT_STATUS_NOTIFY_ENUM_DIR", NT_STATUS_NOTIFY_ENUM_DIR},
1718
{"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED},
1819
{"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA},
1920
{"NT_STATUS_MEDIA_CHECK", NT_STATUS_MEDIA_CHECK},

fs/smb/client/nterr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ extern const struct nt_err_code_struct nt_errs[];
2727
#define NT_ERROR_INVALID_PARAMETER 0x0057
2828
#define NT_ERROR_INSUFFICIENT_BUFFER 0x007a
2929
#define NT_STATUS_1804 0x070c
30-
#define NT_STATUS_NOTIFY_ENUM_DIR 0x010c
3130

3231
/*
3332
* Win32 Error codes extracted using a loop in smbclient then printing a netmon
@@ -37,6 +36,7 @@ extern const struct nt_err_code_struct nt_errs[];
3736
#define NT_STATUS_OK 0x0000
3837
#define NT_STATUS_PENDING 0x0103
3938
#define NT_STATUS_SOME_UNMAPPED 0x0107
39+
#define NT_STATUS_NOTIFY_ENUM_DIR 0x010c
4040
#define NT_STATUS_BUFFER_OVERFLOW 0x80000005
4141
#define NT_STATUS_NO_MORE_ENTRIES 0x8000001a
4242
#define NT_STATUS_MEDIA_CHANGED 0x8000001c

fs/smb/client/smb1maperror.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static const struct {
112112
__u32 ntstatus;
113113
} ntstatus_to_dos_map[] = {
114114
{
115+
ERRSRV, ERR_NOTIFY_ENUM_DIR, NT_STATUS_NOTIFY_ENUM_DIR}, {
115116
ERRDOS, ERRgeneral, NT_STATUS_UNSUCCESSFUL}, {
116117
ERRDOS, ERRbadfunc, NT_STATUS_NOT_IMPLEMENTED}, {
117118
ERRDOS, ERRbadpipe, NT_STATUS_INVALID_INFO_CLASS}, {

0 commit comments

Comments
 (0)