From: Volker Lendecke Date: Wed, 28 Dec 2022 22:14:25 +0000 (+0100) Subject: smbd: Shorten a few lines X-Git-Tag: talloc-2.4.0~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0e911c73cfc8d1ec348a17de13f71344901f92;p=thirdparty%2Fsamba.git smbd: Shorten a few lines Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index cadf223ed57..95c427445c7 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -1744,19 +1744,28 @@ static void call_trans2setfsinfo(connection_struct *conn, (unsigned int)xconn-> smb1.unix_info.client_cap_high)); - /* Here is where we must switch to posix pathname processing... */ - if (xconn->smb1.unix_info.client_cap_low & CIFS_UNIX_POSIX_PATHNAMES_CAP) { + /* + * Here is where we must switch to posix + * pathname processing... + */ + if (xconn->smb1.unix_info.client_cap_low & + CIFS_UNIX_POSIX_PATHNAMES_CAP) + { lp_set_posix_pathnames(); mangle_change_to_posix(); } - if ((xconn->smb1.unix_info.client_cap_low & CIFS_UNIX_FCNTL_LOCKS_CAP) && - !(xconn->smb1.unix_info.client_cap_low & CIFS_UNIX_POSIX_PATH_OPERATIONS_CAP)) { + if ((xconn->smb1.unix_info.client_cap_low & + CIFS_UNIX_FCNTL_LOCKS_CAP) && + !(xconn->smb1.unix_info.client_cap_low & + CIFS_UNIX_POSIX_PATH_OPERATIONS_CAP)) + { /* Client that knows how to do posix locks, * but not posix open/mkdir operations. Set a * default type for read/write checks. */ - lp_set_posix_default_cifsx_readwrite_locktype(POSIX_LOCK); + lp_set_posix_default_cifsx_readwrite_locktype( + POSIX_LOCK); } break;