~vorlon/ubuntu/natty/eglibc/multiarch

« back to all changes in this revision

Viewing changes to elf/ldconfig.c

  • Committer: Steve Langasek
  • Date: 2011-02-18 21:18:44 UTC
  • mfrom: (103.1.7 eglibc)
  • Revision ID: steve.langasek@linaro.org-20110218211844-lodmi8b1qhyq3f3x
Tags: 2.13~pre1-0ubuntu1+multiarch.1
merge from natty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1999-2008, 2009, 2010 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1999-2008, 2009, 2010, 2011 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
   Contributed by Andreas Jaeger <aj@suse.de>, 1999.
4
4
 
320
320
Copyright (C) %s Free Software Foundation, Inc.\n\
321
321
This is free software; see the source for copying conditions.  There is NO\n\
322
322
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
323
 
"), "2010");
 
323
"), "2011");
324
324
  fprintf (stream, gettext ("Written by %s.\n"),
325
325
           "Andreas Jaeger");
326
326
}
1362
1362
 
1363
1363
  const char *aux_cache_file = _PATH_LDCONFIG_AUX_CACHE;
1364
1364
  if (opt_chroot)
1365
 
    {
1366
 
      aux_cache_file = chroot_canon (opt_chroot, aux_cache_file);
1367
 
      if (aux_cache_file == NULL)
1368
 
        error (EXIT_FAILURE, errno, _("Can't open cache file %s\n"),
1369
 
               _PATH_LDCONFIG_AUX_CACHE);
1370
 
    }
 
1365
    aux_cache_file = chroot_canon (opt_chroot, aux_cache_file);
1371
1366
 
1372
 
  if (! opt_ignore_aux_cache)
 
1367
  if (! opt_ignore_aux_cache && aux_cache_file)
1373
1368
    load_aux_cache (aux_cache_file);
1374
1369
  else
1375
1370
    init_aux_cache ();
1379
1374
  if (opt_build_cache)
1380
1375
    {
1381
1376
      save_cache (cache_file);
1382
 
      save_aux_cache (aux_cache_file);
 
1377
      if (aux_cache_file)
 
1378
        save_aux_cache (aux_cache_file);
1383
1379
    }
1384
1380
 
1385
1381
  return 0;