osaf/libs/core/common/osaf_secutil.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Explicitly treats ENOENT as no error for setgrent() since it always failed
on UML
diff --git a/osaf/libs/core/common/osaf_secutil.c
b/osaf/libs/core/common/osaf_secutil.c
--- a/osaf/libs/core/common/osaf_secutil.c
+++ b/osaf/libs/core/common/osaf_secutil.c
@@ -359,7 +359,9 @@ int osaf_get_group_list(const uid_t uid,
/* Reset entry to beginning */
errno = 0;
setgrent();
- if (errno != 0) {
+ /* setgrent() sometimes returns ENOENT on UML
+ * Explicitly treats it as not an error */
+ if (errno != 0 && errno != ENOENT) {
LOG_NO("setgrent failed: %s", strerror(errno));
return -1;
}
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel