Changeset 20032


Ignore:
Timestamp:
02/11/13 21:24:24 (11 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/ipkg.h

    r20031 r20032  
    364364                }
    365365
     366                char* checkpath = ostrcat(path, NULL, 0, 0);
     367                checkpath = string_replace_all("/", ".", checkpath, 1);
     368                checkpath = string_replace_all("-", ".", checkpath, 1);
     369
    366370                char* checkfile = NULL;
    367371                checkfile = ostrcat("/tmp/Packages.", ip, 0, 0);
    368372                checkfile = ostrcat(checkfile, ".", 1, 0);
    369                 checkfile = ostrcat(checkfile, path, 1, 0);
    370                 checkfile = string_replace_all("/", ".", checkfile, 1);
    371                 checkfile = string_replace_all("-", ".", checkfile, 1);
     373                checkfile = ostrcat(checkfile, checkpath, 1, 0);
     374                free(checkpath), checkpath = NULL;
    372375                debug(130, "checkfile: %s", checkfile);
    373376       
Note: See TracChangeset for help on using the changeset viewer.