search for: send_statvfs

Displaying 3 results from an estimated 3 matches for "send_statvfs".

2006 Aug 17
0
[RFC] proposed extensions for SFTP
...======================================= RCS file: /cvs/src/usr.bin/ssh/sftp-server.c,v retrieving revision 1.70 diff -u -r1.70 sftp-server.c --- sftp-server.c 3 Aug 2006 03:34:42 -0000 1.70 +++ sftp-server.c 17 Aug 2006 22:43:04 -0000 @@ -462,6 +463,35 @@ buffer_free(&msg); } +static void +send_statvfs(u_int32_t id, struct statvfs *st) +{ + Buffer msg; + int flag = 0; + + if (st->f_flag & ST_RDONLY) + flag |= SSH2_FX_ST_RDONLY; + if (st->f_flag & ST_NOSUID) + flag |= SSH2_FX_ST_NOSUID; + + buffer_init(&msg); + buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY); + buffer_put_in...
2012 May 03
2
Portablility patch for openssh 6.0p1 configure.ac
The following patch corrects a portablility issue when compiling openssh 6.0p1 on MirOS (aka. mirbsd). The issue is: sftp-server.c: In function `send_statvfs': sftp-server.c:510: error: request for member `val' in something not a structure or union sftp-server.c:510: error: request for member `val' in something not a structure or union The patch is: --- configure.ac.orig 2012-04-19 05:46:38.000000000 -0600 +++ configure.ac 2012-05-03 08:25...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The following two