From: charles Date: Fri, 21 Nov 2008 02:17:32 +0000 (+0000) Subject: Fix problem where duplicate object headers were not always being selected correctly... X-Git-Tag: pre-name-change~258 X-Git-Url: https://yaffs.net/gitweb/?a=commitdiff_plain;h=3b6c99b4d21c4ff4bbc9aed65a71868ab6a0dc46;p=yaffs2.git Fix problem where duplicate object headers were not always being selected correctly due to not reading the serial number from the tags at the right place --- diff --git a/yaffs_guts.c b/yaffs_guts.c index a16ec55..a6775a9 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -12,7 +12,7 @@ */ const char *yaffs_guts_c_version = - "$Id: yaffs_guts.c,v 1.62 2008-11-07 00:32:20 charles Exp $"; + "$Id: yaffs_guts.c,v 1.63 2008-11-21 02:17:32 charles Exp $"; #include "yportenv.h" @@ -5744,6 +5744,7 @@ static int yaffs_Scan(yaffs_Device * dev) in->yst_rdev = oh->yst_rdev; #endif in->hdrChunk = chunk; + in->serial = tags.serialNumber; } else if (in && !in->valid) { /* we need to load this info */ @@ -5768,6 +5769,7 @@ static int yaffs_Scan(yaffs_Device * dev) in->yst_rdev = oh->yst_rdev; #endif in->hdrChunk = chunk; + in->serial = tags.serialNumber; yaffs_SetObjectName(in, oh->name); in->dirty = 0;