Skip to content

Commit

Permalink
Issue proftpd#1845: Include an additional hint in the log message abo…
Browse files Browse the repository at this point in the history
…ut failure to set file permissions for SFTP operations due to presence of a `<Limit SITE_CHMOD>` configuration. (proftpd#1847)
  • Loading branch information
Castaglia authored Nov 13, 2024
1 parent cec01cc commit d6e430a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/mod_sftp/fxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Limit> configuration", path);
"chmod of '%s' blocked by <Limit> configuration "
"(see the IgnoreSFTPSetPerms/IgnoreSFTPUploadPerms SFTPOptions)",
path);

xerrno = EACCES;
res = -1;
Expand Down

0 comments on commit d6e430a

Please sign in to comment.