source: trunk/dports/sysutils/poldek/files/patch-realpath.diff @ 28386

Last change on this file since 28386 was 28386, checked in by afb@…, 13 years ago

new port: yet another rpm frontend

File size: 367 bytes
  • misc.c

    old new  
    530530#ifdef HAVE_CANONICALIZE_FILE_NAME /* have safe GNU ext? */
    531531    return realpath(path, NULL);
    532532#else
    533 # error "missing safe realpath()"
     533        {
     534                char *buf = malloc(PATH_MAX);
     535                if (buf) return realpath(path, buf);
     536        }
    534537#endif
    535538    return NULL;
    536539}
Note: See TracBrowser for help on using the repository browser.