smb2pdu.c (b3773b19d43f4e22d0c819a7514341b26e8fb4a8) smb2pdu.c (de54845290cee3f65dcd03b35a2bd7f2f7aed2ac)
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2009, 2013
5 * Etersoft, 2012
6 * Author(s): Steve French (sfrench@us.ibm.com)
7 * Pavel Shilovsky (pshilovsky@samba.org) 2012
8 *

--- 2567 unchanged lines hidden (view full) ---

2576 if (!*out_path)
2577 return -ENOMEM;
2578
2579 cp = load_nls_default();
2580 cifs_strtoUTF16(*out_path, treename, treename_len, cp);
2581
2582 /* Do not append the separator if the path is empty */
2583 if (path[0] != cpu_to_le16(0x0000)) {
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2009, 2013
5 * Etersoft, 2012
6 * Author(s): Steve French (sfrench@us.ibm.com)
7 * Pavel Shilovsky (pshilovsky@samba.org) 2012
8 *

--- 2567 unchanged lines hidden (view full) ---

2576 if (!*out_path)
2577 return -ENOMEM;
2578
2579 cp = load_nls_default();
2580 cifs_strtoUTF16(*out_path, treename, treename_len, cp);
2581
2582 /* Do not append the separator if the path is empty */
2583 if (path[0] != cpu_to_le16(0x0000)) {
2584 UniStrcat(*out_path, sep);
2585 UniStrcat(*out_path, path);
2584 UniStrcat((wchar_t *)*out_path, (wchar_t *)sep);
2585 UniStrcat((wchar_t *)*out_path, (wchar_t *)path);
2586 }
2587
2588 unload_nls(cp);
2589
2590 return 0;
2591}
2592
2593int smb311_posix_mkdir(const unsigned int xid, struct inode *inode,

--- 3097 unchanged lines hidden ---
2586 }
2587
2588 unload_nls(cp);
2589
2590 return 0;
2591}
2592
2593int smb311_posix_mkdir(const unsigned int xid, struct inode *inode,

--- 3097 unchanged lines hidden ---