From: DESKTOP-73571CJ\User Date: Wed, 11 Feb 2026 08:04:33 +0000 (+0800) Subject: s3:utils: Fix misleading recursive flag in smbget error message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4468d8274c6df1c5d6d6430b6ea768c40048fe8a;p=thirdparty%2Fsamba.git s3:utils: Fix misleading recursive flag in smbget error message The error message in smbget incorrectly instructs users to use "-R" for recursive downloads. In recent Samba versions, the "-R" flag was repurposed for "--name-resolve" to align with other tools. The correct flag for recursion is now "--recursive". This mismatch causes confusion as using "-R" triggers a parameter parsing error rather than enabling recursion. This patch updates the error string to correctly suggest "--recursive" instead of "-R". RN: smbget: Fix error message suggesting wrong flag for recursion. Signed-off-by: Hugo Chia hugochiaxyz.nus@gmail.com Reviewed-by: Anoop C S Reviewed-by: John Mulligan Autobuild-User(master): Anoop C S Autobuild-Date(master): Mon Feb 16 15:37:04 UTC 2026 on atb-devel-224 --- diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index d9744405bed..2ec5cf654ed 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -390,7 +390,7 @@ static bool smb_download_file(const char *base, const char *name, case EISDIR: if (!recursive) { fprintf(stderr, - "%s is a directory. Specify -R " + "%s is a directory. Specify --recursive " "to download recursively\n", path); return false;