From e7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 30 Nov 2004 14:46:25 +0000 Subject: [PATCH] Include chdir-long.h rather than chdir.h. (restore_cwd): Use chdir_long, not chdir. --- lib/save-cwd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/save-cwd.c b/lib/save-cwd.c index 76590d01ea..20df321743 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 -- 2.47.2