View | Details | Raw Unified | Return to bug 144073
Collapse All | Expand All

(-)glibc-2.4.orig/intl/loadmsgcat.c (-2 / +11 lines)
Lines 774-780 Link Here
774
  int revision;
774
  int revision;
775
  const char *nullentry;
775
  const char *nullentry;
776
  size_t nullentrylen;
776
  size_t nullentrylen;
777
777
  char *filename_shadow;
778
  
778
  __libc_lock_lock_recursive (lock);
779
  __libc_lock_lock_recursive (lock);
779
  if (domain_file->decided != 0)
780
  if (domain_file->decided != 0)
780
    {
781
    {
Lines 807-813 Link Here
807
    goto out;
808
    goto out;
808
809
809
  /* Try to open the addressed file.  */
810
  /* Try to open the addressed file.  */
810
  fd = open (domain_file->filename, O_RDONLY);
811
  filename_shadow = malloc (strlen (domain_file->filename) + 8);
812
  if (!filename_shadow)
813
    goto out;
814
  strcpy (filename_shadow, domain_file->filename);
815
  strcat (filename_shadow, ".shadow");
816
817
  if ((fd = open (filename_shadow, O_RDONLY)) == -1)
818
    fd = open (domain_file->filename, O_RDONLY);
819
  free (filename_shadow);
811
  if (fd == -1)
820
  if (fd == -1)
812
    goto out;
821
    goto out;
813
822

Return to bug 144073