summaryrefslogtreecommitdiffstats
path: root/krb5-1.3-large-file.patch
blob: 61ab35be4c1b100d015a98f33c8067ce62ef07b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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]);