projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbslen: Avoid collision with system function.
[gnulib.git]
/
lib
/
fdopendir.c
diff --git
a/lib/fdopendir.c
b/lib/fdopendir.c
index
c364306
..
f7b29af
100644
(file)
--- a/
lib/fdopendir.c
+++ b/
lib/fdopendir.c
@@
-1,5
+1,5
@@
/* provide a replacement fdopendir function
/* provide a replacement fdopendir function
- Copyright (C) 2004-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2004-20
10
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-80,21
+80,21
@@
fdopendir (int fd)
# else /* !REPLACE_FCHDIR */
struct saved_cwd saved_cwd;
if (save_cwd (&saved_cwd) != 0)
# else /* !REPLACE_FCHDIR */
struct saved_cwd saved_cwd;
if (save_cwd (&saved_cwd) != 0)
- openat_save_fail (errno);
+
openat_save_fail (errno);
if (fchdir (fd) != 0)
if (fchdir (fd) != 0)
- {
- dir = NULL;
- saved_errno = errno;
- }
+
{
+
dir = NULL;
+
saved_errno = errno;
+
}
else
else
- {
- dir = opendir (".");
- saved_errno = errno;
+
{
+
dir = opendir (".");
+
saved_errno = errno;
- if (restore_cwd (&saved_cwd) != 0)
- openat_restore_fail (errno);
- }
+
if (restore_cwd (&saved_cwd) != 0)
+
openat_restore_fail (errno);
+
}
free_cwd (&saved_cwd);
# endif /* !REPLACE_FCHDIR */
free_cwd (&saved_cwd);
# endif /* !REPLACE_FCHDIR */