diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-09-19 10:41:58 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-09-19 20:49:13 +1000 |
commit | 488f6e1c582212c2374a4bf8cd1b703d2e70fb8b (patch) | |
tree | d5f1d8e0dd2a49e53b78726c22800a24f21cd283 /sftp.c | |
parent | 74b77f7497dba3a58315c8f308883de448078057 (diff) |
upstream: extend sftp-common.c:extend ls_file() to support supplied
user/group names; ok markus@
OpenBSD-Commit-ID: c70c70498b1fdcf158531117e405b6245863bfb0
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <djm@openbsd.org> * @@ -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 { |