All pastes #772498 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-13 21:16 UTC
rendered paste body
Index: make-relative-prefix.c                                                                                                                                    
===================================================================
*** make-relative-prefix.c      (revision 130159)                                                                                                                
--- make-relative-prefix.c      (working copy)                                                                                                                   
*************** make_relative_prefix_1 (const char *prog
*** 292,305 ****
        }                                                                                                                                                        
      }                                                                                                                                                          
                                                                                                                                                                 
!   if ( resolve_links )                                                                                                                                         
!     {                                                                                                                                                          
!       full_progname = lrealpath (progname);                                                                                                                    
!       if (full_progname == NULL)                                                                                                                               
!       return NULL;                                                                                                                                             
!     }                                                                                                                                                          
    else                                                                                                                                                         
!     full_progname = strdup(progname);                                                                                                                          
                                                                                                                                                                 
    prog_dirs = split_directories (full_progname, &prog_num);                                                                                                    
    free (full_progname);                                                                                                                                        
--- 292,303 ----
        }                                                                                                                                                        
      }                                                                                                                                                          
                                                                                                                                                                 
!   if (resolve_links)                                                                                                                                           
!     full_progname = lrealpath (progname);                                                                                                                      
    else                                                                                                                                                         
!     full_progname = strdup (progname);                                                                                                                         
!   if (full_progname == NULL)                                                                                                                                   
!     return NULL;                                                                                                                                               
                                                                                                                                                                 
    prog_dirs = split_directories (full_progname, &prog_num);