Include chdir-long.h rather than chdir.h.

(restore_cwd): Use chdir_long, not chdir.
This commit is contained in:
Jim Meyering committed 2004-11-30 14:46:25 +00:00
1 parent 34a8030d36
commit e7acb8d8dd
1 file changed
+3 -2
+3 -2
View File
@@ -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