From d6e430abc9d18ac38b6394839334bb7f6c8ae071 Mon Sep 17 00:00:00 2001 From: TJ Saunders Date: Wed, 13 Nov 2024 06:51:22 -0800 Subject: [PATCH] Issue #1845: Include an additional hint in the log message about failure to set file permissions for SFTP operations due to presence of a `` configuration. (#1847) --- contrib/mod_sftp/fxp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/mod_sftp/fxp.c b/contrib/mod_sftp/fxp.c index 000db4aed..db7e9d047 100644 --- a/contrib/mod_sftp/fxp.c +++ b/contrib/mod_sftp/fxp.c @@ -1460,7 +1460,9 @@ static int fxp_attrs_set(pr_fh_t *fh, const char *path, struct stat *attrs, cmd = fxp_cmd_alloc(fxp->pool, "SITE_CHMOD", pstrdup(fxp->pool, path)); if (!dir_check(fxp->pool, cmd, G_WRITE, (char *) path, NULL)) { (void) pr_log_writefile(sftp_logfd, MOD_SFTP_VERSION, - "chmod of '%s' blocked by configuration", path); + "chmod of '%s' blocked by configuration " + "(see the IgnoreSFTPSetPerms/IgnoreSFTPUploadPerms SFTPOptions)", + path); xerrno = EACCES; res = -1;