[PATCH][CIFS] Do not build smb1ops.c if legacy support is disabled

Steve French smfrench at gmail.com
Thu Jun 2 02:39:10 UTC 2022

We should not be including unused SMB1/CIFS functions when legacy
support is disabled (CONFIG_CIFS_ALLOW_INSECURE_LEGACY turned
off), but especially obvious is not needing to build smb1ops.c
at all when legacy support is disabled. Over time we can move
more SMB1/CIFS and SMB2.0 legacy functions into ifdefs but this
is a good start (and shrinks the module size a few percent).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cifs-do-not-build-smb1ops-if-legacy-support-is-disab.patch
Type: text/x-patch
Size: 1620 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20220601/8bbf4094/0001-cifs-do-not-build-smb1ops-if-legacy-support-is-disab.bin>

More information about the samba-technical mailing list