cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/lib/save-cwd.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/lib/save-cwd.c
Date: Mon, 03 Oct 2005 22:35:52 -0400

Index: ccvs/lib/save-cwd.c
diff -u ccvs/lib/save-cwd.c:1.11 ccvs/lib/save-cwd.c:1.12
--- ccvs/lib/save-cwd.c:1.11    Mon Sep 19 21:26:14 2005
+++ ccvs/lib/save-cwd.c Tue Oct  4 02:34:54 2005
@@ -25,20 +25,14 @@
 
 #include "save-cwd.h"
 
+#include <errno.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#include <fcntl.h>
-
-#include <errno.h>
+#include <unistd.h>
 
 #include "chdir-long.h"
-#include "unistd-safer.h"
+#include "fcntl--.h"
 #include "xgetcwd.h"
 
 /* On systems without the fchdir function (WOE), pretend that open
@@ -78,10 +72,10 @@
 {
   cwd->name = NULL;
 
-  cwd->desc = fd_safer (open (".", O_RDONLY));
+  cwd->desc = open (".", O_RDONLY);
   if (cwd->desc < 0)
     {
-      cwd->desc = fd_safer (open (".", O_WRONLY));
+      cwd->desc = open (".", O_WRONLY);
       if (cwd->desc < 0)
        {
          cwd->name = xgetcwd ();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]