]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb/client: move ERRnetlogonNotStarted to DOS error class
authorHuiwen He <hehuiwen@kylinos.cn>
Thu, 2 Apr 2026 14:18:34 +0000 (14:18 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
In smb1maperror.c, ERRnetlogonNotStarted is included in the
mapping_table_ERRDOS array. However, in the smberr.h header file,
this macro was incorrectly placed under the ERRSRV (server)
error class section.

Move the macro definition to the ERRDOS section in smberr.h to maintain
consistency between the error classification in the header file and its
actual usage in the mapping tables.

Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smberr.h

index 6fb63f9e9a95a3bff0c2e269c155eec9d7358aed..5cdd958aaa3528004d0eca94a984bb6a7960746e 100644 (file)
@@ -95,6 +95,7 @@
                                           limit to be exceeded. */
 #define ErrNotALink            0x201   /* A link operation was performed on a
                                           pathname that was not a link. */
+#define ERRnetlogonNotStarted  2455
 
 /* Below errors are used internally (do not come over the wire) for passthrough
    from STATUS codes to POSIX only  */
 #define ERRbadclient           2240    /* can not logon from this client */
 #define ERRbadLogonTime                2241    /* logon hours do not allow this */
 #define ERRpasswordExpired     2242
-#define ERRnetlogonNotStarted  2455
 #define ERRnosupport           0xFFFF