projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use macros for TUI window names
[deliverable/binutils-gdb.git]
/
gnulib
/
import
/
save-cwd.c
diff --git
a/gnulib/import/save-cwd.c
b/gnulib/import/save-cwd.c
index 27cb7507fe198177cfd30b5521424a36654426a7..c2608d58b22d4bca2c0a1ba7dae13f61e6c59b42 100644
(file)
--- a/
gnulib/import/save-cwd.c
+++ b/
gnulib/import/save-cwd.c
@@
-1,6
+1,6
@@
/* save-cwd.c -- Save and restore current working directory.
/* save-cwd.c -- Save and restore current working directory.
- Copyright (C) 1995, 1997-1998, 2003-2006, 2009-20
16
Free Software
+ Copyright (C) 1995, 1997-1998, 2003-2006, 2009-20
20
Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@
-14,7
+14,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ along with this program. If not, see <http
s
://www.gnu.org/licenses/>. */
/* Written by Jim Meyering. */
/* Written by Jim Meyering. */
@@
-30,7
+30,6
@@
#include "chdir-long.h"
#include "unistd--.h"
#include "chdir-long.h"
#include "unistd--.h"
-#include "cloexec.h"
#if GNULIB_FCNTL_SAFER
# include "fcntl--.h"
#if GNULIB_FCNTL_SAFER
# include "fcntl--.h"
@@
-64,16
+63,15
@@
save_cwd (struct saved_cwd *cwd)
{
cwd->name = NULL;
{
cwd->name = NULL;
- cwd->desc = open (".", O_SEARCH);
+ cwd->desc = open (".", O_SEARCH
| O_CLOEXEC
);
if (!GNULIB_FCNTL_SAFER)
if (!GNULIB_FCNTL_SAFER)
- cwd->desc = fd_safer
(cwd->desc
);
+ cwd->desc = fd_safer
_flag (cwd->desc, O_CLOEXEC
);
if (cwd->desc < 0)
{
cwd->name = getcwd (NULL, 0);
return cwd->name ? 0 : -1;
}
if (cwd->desc < 0)
{
cwd->name = getcwd (NULL, 0);
return cwd->name ? 0 : -1;
}
- set_cloexec_flag (cwd->desc, true);
return 0;
}
return 0;
}
This page took
0.024017 seconds
and
4
git commands to generate.