summaryrefslogtreecommitdiff
path: root/lib/save-cwd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-11-30 14:46:25 +0000
committerJim Meyering <jim@meyering.net>2004-11-30 14:46:25 +0000
commite7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8 (patch)
treee707ceb65d08eb47dd00f22f3645fbfdef308d8a /lib/save-cwd.c
parent34a8030d3646e7f2da9ee6394edf94c371fa6642 (diff)
downloadcoreutils-e7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8.tar.xz
Include chdir-long.h rather than chdir.h.
(restore_cwd): Use chdir_long, not chdir.
Diffstat (limited to 'lib/save-cwd.c')
-rw-r--r--lib/save-cwd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/save-cwd.c b/lib/save-cwd.c
index 76590d01e..20df32174 100644
--- a/lib/save-cwd.c
+++ b/lib/save-cwd.c
@@ -41,8 +41,9 @@
# define O_DIRECTORY 0
#endif
-#include "chdir.h"
#include "save-cwd.h"
+
+#include "chdir-long.h"
#include "xgetcwd.h"
/* Record the location of the current working directory in CWD so that
@@ -128,7 +129,7 @@ restore_cwd (const struct saved_cwd *cwd)
if (0 <= cwd->desc)
return fchdir (cwd->desc);
else
- return chdir (cwd->name);
+ return chdir_long (cwd->name);
}
void