diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-06-06 03:15:39 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2021-06-06 13:24:38 +1000 |
commit | d345d5811afdc2d6923019b653cdd93c4cc95f76 (patch) | |
tree | e4f706ed32bda69ed72daac63bea665f81a9a4fb | |
parent | 2b71010d9b43d7b8c9ec1bf010beb00d98fa765a (diff) |
upstream: the limits@openssh.com extension was incorrectly marked
as an operation that writes to the filesystem, which made it unavailable in
sftp-server read-only mode. Spotted by Hector Martin via bz3318
OpenBSD-Commit-ID: f054465230787e37516c4b57098fc7975e00f067
-rw-r--r-- | sftp-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c index 838f0488..4972b2a6 100644 --- a/sftp-server.c +++ b/sftp-server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp-server.c,v 1.127 2021/04/03 06:18:41 djm Exp $ */ +/* $OpenBSD: sftp-server.c,v 1.128 2021/06/06 03:15:39 djm Exp $ */ /* * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. * @@ -157,7 +157,7 @@ static const struct sftp_handler extended_handlers[] = { { "hardlink", "hardlink@openssh.com", 0, process_extended_hardlink, 1 }, { "fsync", "fsync@openssh.com", 0, process_extended_fsync, 1 }, { "lsetstat", "lsetstat@openssh.com", 0, process_extended_lsetstat, 1 }, - { "limits", "limits@openssh.com", 0, process_extended_limits, 1 }, + { "limits", "limits@openssh.com", 0, process_extended_limits, 0 }, { NULL, NULL, 0, NULL, 0 } }; |