summaryrefslogtreecommitdiffabout
path: root/lib
authorMichael Krelin <hacker@klever.net>2005-02-13 22:04:58 (UTC)
committer Michael Krelin <hacker@klever.net>2005-02-13 22:04:58 (UTC)
commit5f46976a264df39b847e3095b5babb400ab2a3e7 (patch) (side-by-side diff)
tree059b3a6031dd2f375339a27a4de25af1686b7124 /lib
parent9aa669090e978dce5e1f4d1ca9d23a4d92208518 (diff)
downloadsitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.zip
sitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.tar.gz
sitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.tar.bz2
portability improvements
Diffstat (limited to 'lib') (more/less context) (show whitespace changes)
-rw-r--r--lib/sitecing_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sitecing_util.cc b/lib/sitecing_util.cc
index 9b6c54e..5466b28 100644
--- a/lib/sitecing_util.cc
+++ b/lib/sitecing_util.cc
@@ -260,7 +260,8 @@ namespace sitecing {
}
void auto_chdir::pushdir(const string& td,bool ap) {
- char *tmp = get_current_dir_name();
+ /* TODO: make use of fchdir(2) instead */
+ char *tmp = getcwd(0,0);
assert(tmp);
saved_pwd = tmp;
free(tmp);