From 488f6e1c582212c2374a4bf8cd1b703d2e70fb8b Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Mon, 19 Sep 2022 10:41:58 +0000 Subject: upstream: extend sftp-common.c:extend ls_file() to support supplied user/group names; ok markus@ OpenBSD-Commit-ID: c70c70498b1fdcf158531117e405b6245863bfb0 --- sftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sftp.c') diff --git a/sftp.c b/sftp.c index 24568aade..2d1186ac2 100644 --- a/sftp.c +++ b/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.220 2022/09/16 03:33:14 djm Exp $ */ +/* $OpenBSD: sftp.c,v 1.221 2022/09/19 10:41:58 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller * @@ -889,7 +889,7 @@ do_ls_dir(struct sftp_conn *conn, const char *path, memset(&sb, 0, sizeof(sb)); attrib_to_stat(&d[n]->a, &sb); lname = ls_file(fname, &sb, 1, - (lflag & LS_SI_UNITS)); + (lflag & LS_SI_UNITS), NULL, NULL); mprintf("%s\n", lname); free(lname); } else @@ -1026,7 +1026,7 @@ do_globbed_ls(struct sftp_conn *conn, const char *path, continue; } lname = ls_file(fname, g.gl_statv[i], 1, - (lflag & LS_SI_UNITS)); + (lflag & LS_SI_UNITS), NULL, NULL); mprintf("%s\n", lname); free(lname); } else { -- cgit v1.2.3