version 1.28, 2015/01/20 23:14:00 |
version 1.29, 2016/09/12 01:22:38 |
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
*/ |
|
|
#include <sys/param.h> /* MAX */ |
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
|
|
#include "ssherr.h" |
#include "ssherr.h" |
#include "sshbuf.h" |
#include "sshbuf.h" |
#include "log.h" |
#include "log.h" |
|
#include "misc.h" |
|
|
#include "sftp.h" |
#include "sftp.h" |
#include "sftp-common.h" |
#include "sftp-common.h" |
|
|
} |
} |
if (sz == 0) |
if (sz == 0) |
tbuf[0] = '\0'; |
tbuf[0] = '\0'; |
ulen = MAX(strlen(user), 8); |
ulen = MAXIMUM(strlen(user), 8); |
glen = MAX(strlen(group), 8); |
glen = MAXIMUM(strlen(group), 8); |
if (si_units) { |
if (si_units) { |
fmt_scaled((long long)st->st_size, sbuf); |
fmt_scaled((long long)st->st_size, sbuf); |
snprintf(buf, sizeof buf, "%s %3u %-*s %-*s %8s %s %s", mode, |
snprintf(buf, sizeof buf, "%s %3u %-*s %-*s %8s %s %s", mode, |