source: branches/backfire/package/opkg/patches/012-strip-trailing-conffiles-whitespace.patch @ 22339

Last change on this file since 22339 was 22339, checked in by jow, 6 years ago

[backfire] merge r22338

File size: 635 bytes
  • libopkg/opkg_install.c

    a b unpack_pkg_control_files(pkg_t *pkg) 
    271271     while (1) { 
    272272          char *cf_name; 
    273273          char *cf_name_in_dest; 
     274          int i; 
    274275 
    275276          cf_name = file_read_line_alloc(conffiles_file); 
    276277          if (cf_name == NULL) { 
    unpack_pkg_control_files(pkg_t *pkg) 
    279280          if (cf_name[0] == '\0') { 
    280281               continue; 
    281282          } 
     283          for (i = strlen(cf_name) - 1; 
     284               (i >= 0) && (cf_name[i] == ' ' || cf_name[i] == '\t'); 
     285               i-- 
     286          ) { 
     287               cf_name[i] = '\0'; 
     288          } 
    282289 
    283290          /* Prepend dest->root_dir to conffile name. 
    284291             Take pains to avoid multiple slashes. */ 
Note: See TracBrowser for help on using the repository browser.