]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include chdir-long.h rather than chdir.h.
authorJim Meyering <jim@meyering.net>
Tue, 30 Nov 2004 14:46:25 +0000 (14:46 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 30 Nov 2004 14:46:25 +0000 (14:46 +0000)
(restore_cwd): Use chdir_long, not chdir.

lib/save-cwd.c

index 76590d01ea05ac89ddb567f6ea7d98ff40444fdd..20df3217439bdacf73dc46b3f7be29e55d391b82 100644 (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