$OpenBSD: patch-face_image_c,v 1.1 2000/06/05 01:09:24 espie Exp $ --- face_image.c.orig Sun Mar 13 01:38:40 1994 +++ face_image.c Mon Jun 5 02:43:44 2000 @@ -204,15 +204,22 @@ FaceImageLoadInfo* info; int length; static char* filename = NULL; static int filename_length = 0; - + + char my_label[512]; /* * First see if we already have this image. */ + for (fi = TheImages; fi != NULL; fi = fi->next) { if (strcmp(fi->file, file) == 0) { + if (info && info->item) { + sprintf(my_label, "%s@%s", info->item->user, info->item->host); + if (strcmp(fi->label, my_label)) + break; + } /* * Yep! */ @@ -290,7 +297,6 @@ FaceImageLoadInfo* info; /* * Ok, create a face image struct. */ - fi = FaceImageCreate(file, info->type, image_data); info->item->image = fi; @@ -367,6 +373,11 @@ FaceSearchData* data; break; } } + +#ifdef FACEDB_DEBUG + if (found) + fprintf(stderr, "FaceImageLoad: Reporting %s as found\n", file); +#endif return found; }