[openssh-commits] [openssh] 02/03: upstream: Replace <sys/mount.h> with <limits.h>

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Feb 14 09:07:43 AEDT 2026


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 8b3a0552054106feb036c632fc844f878568799f
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Fri Feb 13 19:06:18 2026 +0000

    upstream: Replace <sys/mount.h> with <limits.h>
    
    The former is a portability hassle, but it turns out the only thing we
    need from it is PATH_MAX which we can get directly from limits.h.
    
    OpenBSD-Commit-ID: ccfbbd678bef3a3930ae89da456645c3ee5f83c0
---
 sftp-server.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sftp-server.c b/sftp-server.c
index feb2ad8ac..fffdef852 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.151 2026/02/08 19:54:31 dtucker Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.152 2026/02/13 19:06:18 dtucker Exp $ */
 /*
  * Copyright (c) 2000-2004 Markus Friedl.  All rights reserved.
  *
@@ -21,12 +21,12 @@
 #include <sys/resource.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#include <sys/mount.h>
 #include <sys/statvfs.h>
 
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <poll.h>
 #include <pwd.h>
 #include <grp.h>

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list