projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git]
/
lib
/
openat.c
diff --git
a/lib/openat.c
b/lib/openat.c
index
3225326
..
9d2f7d4
100644
(file)
--- a/
lib/openat.c
+++ b/
lib/openat.c
@@
-1,5
+1,5
@@
/* provide a replacement openat function
/* provide a replacement openat function
- Copyright (C) 2004-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2004-201
4
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
@@
-28,7
+28,7
@@
#undef __need_system_fcntl_h
#if HAVE_OPENAT
#undef __need_system_fcntl_h
#if HAVE_OPENAT
-static in
line in
t
+static int
orig_openat (int fd, char const *filename, int flags, mode_t mode)
{
return openat (fd, filename, flags, mode);
orig_openat (int fd, char const *filename, int flags, mode_t mode)
{
return openat (fd, filename, flags, mode);
@@
-46,6
+46,7
@@
orig_openat (int fd, char const *filename, int flags, mode_t mode)
#include <stddef.h>
#include <string.h>
#include <sys/stat.h>
#include <stddef.h>
#include <string.h>
#include <sys/stat.h>
+#include <errno.h>
#if HAVE_OPENAT
#if HAVE_OPENAT
@@
-179,7
+180,7
@@
openat (int fd, char const *file, int flags, ...)
directory argument.
If a previous attempt to restore the current working directory
directory argument.
If a previous attempt to restore the current working directory
- failed, then we must not even try to access a
`
.'-relative name.
+ failed, then we must not even try to access a
'
.'-relative name.
It is the caller's responsibility not to call this function
in that case. */
It is the caller's responsibility not to call this function
in that case. */