From: djm Date: Sun, 6 Jun 2021 03:15:39 +0000 (+0000) Subject: the limits@openssh.com extension was incorrectly marked as an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d08d33cb24cd003d184c63f4a4ef279d1afd7331;p=openbsd 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 --- diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c index 4e477961f28..1f0e85e829d 100644 --- a/usr.bin/ssh/sftp-server.c +++ b/usr.bin/ssh/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. * @@ -149,7 +149,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 } };