mirror of
https://github.com/samba-team/samba.git
synced 2025-04-26 02:50:29 +03:00
GNU getopt(3) is by default non-POSIX compliant and accepts options after positional arguments (unless forced with POSIXLY_CORRECT). This is not portable, e..g., on FreeBSD. Put options first and then positional arguments. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15804 Signed-off-by: Andrea Venturoli <ml@netfence.it> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz> (cherry picked from commit 7e083a6b3a12933b79ef19ccbd4c13bfa0203498) Autobuild-User(v4-20-test): Jule Anger <janger@samba.org> Autobuild-Date(v4-20-test): Tue Mar 4 11:23:45 UTC 2025 on atb-devel-224