From: Jim Meyering Date: Tue, 30 Nov 2004 14:46:25 +0000 (+0000) Subject: Include chdir-long.h rather than chdir.h. X-Git-Tag: v5.3.0~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8;p=thirdparty%2Fcoreutils.git Include chdir-long.h rather than chdir.h. (restore_cwd): Use chdir_long, not chdir. --- 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