Skip to content

Commit 4468d82

Browse files
Hugo-Chiaanoopcs9
authored andcommitted
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 <anoopcs@samba.org> Reviewed-by: John Mulligan <jmulligan@redhat.com> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Mon Feb 16 15:37:04 UTC 2026 on atb-devel-224
1 parent c43d52e commit 4468d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source3/utils/smbget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static bool smb_download_file(const char *base, const char *name,
390390
case EISDIR:
391391
if (!recursive) {
392392
fprintf(stderr,
393-
"%s is a directory. Specify -R "
393+
"%s is a directory. Specify --recursive "
394394
"to download recursively\n",
395395
path);
396396
return false;

0 commit comments

Comments
 (0)