Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e16d0c94ff2c9e93ba4eea60f7b68478 > files > 21

krb5-1.6.1-70.el5_9.2.src.rpm

The size might be a long long, so deal with that.

--- krb5-1.3/src/appl/gssftp/ftpd/ftpcmd.y
+++ krb5-1.3/src/appl/gssftp/ftpd/ftpcmd.y
@@ -1515,12 +1515,12 @@
 		    (stbuf.st_mode&S_IFMT) != S_IFREG)
 			reply(550, "%s: not a plain file.", filename);
 		else
-			reply(213, "%lu", (long) stbuf.st_size);
+			reply(213, "%llu", (long long) stbuf.st_size);
 		break;}
 	case TYPE_A: {
 		FILE *fin;
 		register int c;
-		register long count;
+		register long long count;
 		struct stat stbuf;
 		fin = fopen(filename, "r");
 		if (fin == NULL) {
@@ -1542,7 +1542,7 @@
 		}
 		(void) fclose(fin);
 
-		reply(213, "%ld", count);
+		reply(213, "%lld", count);
 		break;}
 	default:
 		reply(504, "SIZE not implemented for Type %c.", "?AEIL"[type]);