Details
-
Sub-task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Novice
Description
after 'strstr' was replaced by "findDirInPath(char *path, char *dir, char *separator)"
The headache with LD_LIBRARY_PATH for gdb appeares again
gdb fails to run even if "rc = putenv (newPath);" sets the original LD_LIBRARY_PATH (i.e. newPath == oldPath)
The only way to skip "rc = putenv (newPath);" execution is to provide found == count in:
/*
- if we found them all, we're done
*/
if (found == count) { return 0; }
So findDirInPath(char *path, char *dir, char *separator) should be improved.