summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-05-18 01:31:53 +0000
committerBill Nottingham <notting@redhat.com>2005-05-18 01:31:53 +0000
commitca4139ba3f296ade8b5f378dfb794c4959e0c86b (patch)
tree71f8389dc335a136628bdb00aa96769f19083b7b /loader2
parent3e2eddf8ae528e9e4f2680699e40a6aaaa7d0999 (diff)
downloadanaconda-ca4139ba3f296ade8b5f378dfb794c4959e0c86b.tar.gz
anaconda-ca4139ba3f296ade8b5f378dfb794c4959e0c86b.tar.xz
anaconda-ca4139ba3f296ade8b5f378dfb794c4959e0c86b.zip
Add arch to buildstamp and check it. (#151927)
Diffstat (limited to 'loader2')
-rw-r--r--loader2/method.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loader2/method.c b/loader2/method.c
index d06458dff..9cf8bb8bb 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -541,15 +541,15 @@ int verifyStamp(char * path) {
int fail = 0;
char * p, *q;
- stamp1 = alloca(13);
- stamp2 = alloca(13);
+ stamp1 = alloca(32);
+ stamp2 = alloca(32);
/* grab the one from the initrd */
f = fopen("/.buildstamp", "r");
if (!f) {
fail = 1;
} else {
- q = fgets(stamp1, 13, f);
+ q = fgets(stamp1, 32, f);
fclose(f);
/* and the runtime */
@@ -559,10 +559,10 @@ int verifyStamp(char * path) {
if (!f) {
fail = 1;
} else {
- q = fgets(stamp2, 13, f);
+ q = fgets(stamp2, 32, f);
fclose(f);
- if (strncmp(stamp1, stamp2, 12) != 0) {
+ if (strcmp(stamp1, stamp2) != 0) {
fail = 1;
}
}