From: Sam Hartman Date: Sat, 10 Aug 1996 20:51:53 +0000 (+0000) Subject: Fix bug that caused files transmitted by a NetBSD box to have file X-Git-Tag: krb5-1.0-beta7~160 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b81a8531cc262433af37f861f7c10c651a43d1b;p=krb5.git Fix bug that caused files transmitted by a NetBSD box to have file names of (null). CVS: ---------------------------------------------------------------------- automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ---------------------------------------------------------------------- git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8922 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 28d3c5065..59754e787 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,10 @@ +Sat Aug 10 16:22:34 1996 Sam Hartman + + * krcp.c (source): Cast stb.st_size to a long before printing it. + On NetBSD, it's a quad, so the following pointer is ignored and + all files look null. We could special case NetBSD, but casting is + somewhat cleaner if we aren't dealing with 2g+ files. +e Mon Jun 24 09:48:11 1996 Theodore Ts'o * krsh.c (main): Fix typo so that krsh doesn't exit when using the diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 36ad114ce..88b2b76b6 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -748,7 +748,7 @@ void source(argc, argv) } } (void) sprintf(buf, "C%04o %ld %s\n", - stb.st_mode&07777, stb.st_size, last); + (int) stb.st_mode&07777, (long ) stb.st_size, last); (void) des_write(rem, buf, strlen(buf)); if (response() < 0) { (void) close(f);