summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-server.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2022-09-19 10:41:59 +0000
committerDamien Miller <djm@cvs.openbsd.org>2022-09-19 10:41:59 +0000
commitf869d044b5615012c21b53409cbf67eaa72bc743 (patch)
treee9e2d268cd36a2ee756effabeb019df9e6a91915 /usr.bin/ssh/sftp-server.c
parentb51fc3bcce2a9bc1287c718f5d82e884d7cec5ac (diff)
extend sftp-common.c:extend ls_file() to support supplied user/group
names; ok markus@
Diffstat (limited to 'usr.bin/ssh/sftp-server.c')
-rw-r--r--usr.bin/ssh/sftp-server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index 566a95ebddc..2da879fcf28 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.143 2022/09/19 10:40:52 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.144 2022/09/19 10:41:58 djm Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -1139,7 +1139,8 @@ process_readdir(u_int32_t id)
continue;
stat_to_attrib(&st, &(stats[count].attrib));
stats[count].name = xstrdup(dp->d_name);
- stats[count].long_name = ls_file(dp->d_name, &st, 0, 0);
+ stats[count].long_name = ls_file(dp->d_name, &st,
+ 0, 0, NULL, NULL);
count++;
/* send up to 100 entries in one message */
/* XXX check packet size instead */