Change Details
src/linkapp.cpp |
527 | 527 | exec = opkMount + exec; |
528 | 528 | } |
529 | 529 | |
530 | | #else |
| 530 | else { |
| 531 | #endif |
531 | 532 | //Set correct working directory |
532 | 533 | string::size_type pos = exec.rfind("/"); |
533 | 534 | if (pos != string::npos) { |
534 | 535 | string wd = exec.substr(0, pos + 1); |
535 | 536 | chdir(wd.c_str()); |
536 | | exec = exec.substr(pos + 1); |
| 537 | exec = wd + exec.substr(pos + 1); |
| 538 | DEBUG("Changed working directory to %s\n", wd.c_str()); |
| 539 | } |
| 540 | #ifdef HAVE_LIBOPK |
537 | 541 | } |
538 | 542 | #endif |
539 | 543 | |
Download the corresponding diff file