diff options
author | Jim Meyering <jim@meyering.net> | 2004-11-30 14:46:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-11-30 14:46:25 +0000 |
commit | e7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8 (patch) | |
tree | e707ceb65d08eb47dd00f22f3645fbfdef308d8a /lib | |
parent | 34a8030d3646e7f2da9ee6394edf94c371fa6642 (diff) | |
download | coreutils-e7acb8d8ddd9bdc8cbb14254e071dd89dd6485c8.tar.xz |
Include chdir-long.h rather than chdir.h.
(restore_cwd): Use chdir_long, not chdir.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/save-cwd.c | 5 |
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 |