/* We must make sure we don't send a zero flags byte or
* the other end will terminate the flist transfer. */
if (flags == 0 && !S_ISDIR(mode))
/* We must make sure we don't send a zero flags byte or
* the other end will terminate the flist transfer. */
if (flags == 0 && !S_ISDIR(mode))
if (protocol_version >= 28) {
if ((flags & 0xFF00) || flags == 0) {
flags |= XMIT_EXTENDED_FLAGS;
if (protocol_version >= 28) {
if ((flags & 0xFF00) || flags == 0) {
flags |= XMIT_EXTENDED_FLAGS;