projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openat: work around AIX 7.1 fstatat issue
[gnulib.git]
/
lib
/
chdir-long.c
diff --git
a/lib/chdir-long.c
b/lib/chdir-long.c
index
28e2407
..
96b750c
100644
(file)
--- a/
lib/chdir-long.c
+++ b/
lib/chdir-long.c
@@
-1,5
+1,5
@@
/* provide a chdir function that tries not to fail due to ENAMETOOLONG
/* provide a chdir function that tries not to fail due to ENAMETOOLONG
- Copyright (C) 2004-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2004-201
1
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
@@
-72,7
+72,7
@@
static int
cdb_advance_fd (struct cd_buf *cdb, char const *dir)
{
int new_fd = openat (cdb->fd, dir,
cdb_advance_fd (struct cd_buf *cdb, char const *dir)
{
int new_fd = openat (cdb->fd, dir,
- O_
RDONLY
| O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
+ O_
SEARCH
| O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
if (new_fd < 0)
return -1;
if (new_fd < 0)
return -1;