projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mgetgroups: new module, taken from coreutils
[pspp]
/
lib
/
at-func.c
diff --git
a/lib/at-func.c
b/lib/at-func.c
index cc7bfc2de112065c94a9df7edf41188393db3793..73be401a3e3f2b1c8ee8329287499023fc9aa07a 100644
(file)
--- a/
lib/at-func.c
+++ b/
lib/at-func.c
@@
-115,7
+115,7
@@
AT_FUNC_NAME (int fd, char const *file AT_FUNC_POST_FILE_PARAM_DECLS)
}
err = CALL_FUNC (file);
- saved_errno = (err
< 0
? errno : 0);
+ saved_errno = (err
== FUNC_FAIL
? errno : 0);
if (restore_cwd (&saved_cwd) != 0)
openat_restore_fail (errno);