mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Include chdir-long.h rather than chdir.h.
(restore_cwd): Use chdir_long, not chdir.
This commit is contained in:
1 parent
34a8030d36
commit
e7acb8d8dd
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user