]> andersk Git - openssh.git/blobdiff - sftp-server.c
- deraadt@cvs.openbsd.org 2002/06/24 17:57:20
[openssh.git] / sftp-server.c
index c3eee38027792848b95666d4b0d4c7d2b7d0b3d5..a5c325561efb2fe5625b4603c802caf61493793d 100644 (file)
@@ -22,7 +22,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "includes.h"
-RCSID("$OpenBSD: sftp-server.c,v 1.36 2002/06/23 09:30:14 deraadt Exp $");
+RCSID("$OpenBSD: sftp-server.c,v 1.37 2002/06/24 17:57:20 deraadt Exp $");
 
 #include "buffer.h"
 #include "bufaux.h"
@@ -712,13 +712,13 @@ ls_file(char *name, struct stat *st)
        if ((pw = getpwuid(st->st_uid)) != NULL) {
                user = pw->pw_name;
        } else {
-               snprintf(ubuf, sizeof ubuf, "%u", st->st_uid);
+               snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid);
                user = ubuf;
        }
        if ((gr = getgrgid(st->st_gid)) != NULL) {
                group = gr->gr_name;
        } else {
-               snprintf(gbuf, sizeof gbuf, "%u", st->st_gid);
+               snprintf(gbuf, sizeof gbuf, "%u", (u_int)st->st_gid);
                group = gbuf;
        }
        if (ltime != NULL) {
This page took 0.056052 seconds and 4 git commands to generate.