29b136c663
Copy from home:mcalmer:branches:openSUSE:11.2/pam_mount based on submit request 24760 from user mcalmer OBS-URL: https://build.opensuse.org/request/show/24760 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pam_mount?expand=0&rev=32
25 lines
739 B
Plaintext
25 lines
739 B
Plaintext
diff --git a/src/rdconf1.c b/src/rdconf1.c
|
|
index 0a90de7..9ec29f8 100644
|
|
--- a/src/rdconf1.c
|
|
+++ b/src/rdconf1.c
|
|
@@ -959,8 +959,7 @@ static int rc_volume_cond_uid(const struct passwd *pwd, xmlNode *node)
|
|
continue;
|
|
ret = __rc_volume_cond_id(signed_cast(const char *,
|
|
node->content), pwd->pw_uid);
|
|
- if (ret < 0)
|
|
- return ret;
|
|
+ return ret;
|
|
}
|
|
|
|
l0g("config: empty or invalid content for <%s>\n", "uid");
|
|
@@ -981,8 +980,7 @@ static int rc_volume_cond_gid(const struct passwd *pwd, xmlNode *node)
|
|
continue;
|
|
ret = __rc_volume_cond_id(signed_cast(const char *,
|
|
node->content), pwd->pw_gid);
|
|
- if (ret < 0)
|
|
- return ret;
|
|
+ return ret;
|
|
}
|
|
|
|
l0g("config: empty or invalid content for <%s>\n", "gid");
|