~ubuntu-branches/ubuntu/precise/checkinstall/precise

« back to all changes in this revision

Viewing changes to installwatch-0.6.3/installwatch.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2006-04-22 17:28:22 UTC
  • Revision ID: james.westby@ubuntu.com-20060422172822-gd75kohxbvp3l3rm
Tags: 1.5.3-3ubuntu2
* Use /usr/bin/which instead of which. (Malone: #4423)
* Correct path for installwatch.so. (Malone: #29536)

Show diffs side-by-side

added added

removed removed

Lines of Context:
725
725
        if(mode[0]=='w'||mode[0]=='a'||mode[1]=='+') 
726
726
        backup (canonic);
727
727
 
 
728
        if (true_fopen == 0) {
 
729
          void *libc_handle;
 
730
          fprintf(stderr, "true_fopen == 0 for fopen64(\"%s\", \"%s\")\n", pathname, mode);
 
731
 
 
732
#ifdef BROKEN_RTLD_NEXT
 
733
          libc_handle = dlopen(LIBC_VERSION, RTLD_LAZY);
 
734
#else
 
735
          libc_handle = RTLD_NEXT;
 
736
#endif
 
737
 
 
738
          true_fopen = dlsym(libc_handle, "fopen");
 
739
        }
 
740
 
728
741
        result = true_fopen(pathname,mode);
729
742
        if(mode[0]=='w'||mode[0]=='a'||mode[1]=='+') 
730
743
                log("%d\tfopen64\t%s\t#%s\n", (int)result, canonic, error(result));