]> git.tdb.fi Git - libs/core.git/commit
Store absolute path to argv[0] in Application
authorMikko Rasa <tdb@tdb.fi>
Mon, 10 Nov 2014 17:29:11 +0000 (19:29 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 10 Nov 2014 17:29:11 +0000 (19:29 +0200)
commit60260b5701bab73f8de093147de03947c7f264c8
treecb3d0b3b5709efb69677eb14758ed3406d9d5b2b
parentce0b610396aa8f760462fa4d7a6bb207a43994d2
Store absolute path to argv[0] in Application

Working directory or $PATH may be changed by the program, so it may not
be possible to recover the executable later.  It's still not completely
reliable since the parent process can pass any value for argv[0] through
execve().
source/core/application.cpp
source/fs/dir.cpp
source/fs/dir.h