chiark / gitweb /
zsh: Disable TIOCSETD ioctl during initialization
[termux-packages] / packages / openssh / stfp_server_no_statvfs.patch
1 diff -u -r ../openssh-6.5p1/sftp-server.c ./sftp-server.c
2 --- ../openssh-6.5p1/sftp-server.c      2014-01-19 05:25:35.000000000 +0100
3 +++ ./sftp-server.c     2014-02-11 11:06:33.000000000 +0100
4 @@ -1259,7 +1259,7 @@
5         debug3("request %u: statvfs", id);
6         logit("statvfs \"%s\"", path);
7  
8 -       if (statvfs(path, &st) != 0)
9 +       if (statfs(path, &st) != 0)
10                 send_status(id, errno_to_portable(errno));
11         else
12                 send_statvfs(id, &st);
13 @@ -1279,7 +1279,7 @@
14                 send_status(id, SSH2_FX_FAILURE);
15                 return;
16         }
17 -       if (fstatvfs(fd, &st) != 0)
18 +       if (fstat(fd, &st) != 0)
19                 send_status(id, errno_to_portable(errno));
20         else
21                 send_statvfs(id, &st);