Skip to content

Commit

Permalink
Issue #1792: While working on this issue, the user reported a differe…
Browse files Browse the repository at this point in the history
…nt issue related to the `AllowStoreRestart` directive when used with SFTP. (#1797)

Add some debug logging in the checking of this configuration in mod_xfer, to make future diagnosis easier.
  • Loading branch information
Castaglia committed Apr 25, 2024
1 parent 6582339 commit e5513a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/mod_xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2023 The ProFTPD Project team
* Copyright (c) 2001-2024 The ProFTPD Project team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -1563,6 +1563,8 @@ MODRET xfer_pre_stor(cmd_rec *cmd) {
(session.xfer.xfer_type == STOR_APPEND)) &&
(!allow_restart || *allow_restart == FALSE)) {

pr_log_debug(DEBUG6, "AllowStoreRestart denied permission for %s",
cmd->arg);
pr_response_add_err(R_451, _("%s: Append/Restart not permitted, try again"),
cmd->arg);
session.restart_pos = 0L;
Expand Down

0 comments on commit e5513a5

Please sign in to comment.