#define _XOPEN_SOURCE 600 #include #include #include #include int main(int argc, char *argv[]) { if (argc > 0) { char *newname = strdup("/Volumes/RAID/var/tmp/mprsyncup/opt/local/libexec/macports/bin/tclsh8.6"); if (newname != NULL) { argv[0] = newname; } /* Ignore errors and just leave argv[0] the same, hoping that the * executed program will still work fine. */ } execvp("/Volumes/RAID/var/tmp/mprsyncup/opt/local/libexec/macports/bin/tclsh8.6", argv); perror("execvp('/Volumes/RAID/var/tmp/mprsyncup/opt/local/libexec/macports/bin/tclsh8.6', argv)"); return EXIT_FAILURE; }