| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/security/sssd/files/ |
Upload File : |
--- src/tests/cmocka/test_negcache_2.c 2020-03-17 09:31:28.000000000 -0400
+++ src/tests/cmocka/test_negcache_2.c 2022-02-22 23:48:57.315866000 -0500
@@ -116,12 +116,8 @@
{
int i;
- FILE *passwd_file;
const struct passwd *pwd;
- passwd_file = fopen("/etc/passwd", "r");
- assert_non_null(passwd_file);
-
for (i = 0; i < 2; /*no-op*/) {
- pwd = fgetpwent(passwd_file);
+ pwd = getpwent();
assert_non_null(pwd);
if (pwd->pw_uid == 0) {
@@ -135,5 +131,4 @@
}
- fclose(passwd_file);
}
@@ -141,12 +136,8 @@
{
int i;
- FILE *group_file;
const struct group *grp;
- group_file = fopen("/etc/group", "r");
- assert_non_null(group_file);
-
for (i = 0; i < 2; /* no-op */) {
- grp = fgetgrent(group_file);
+ grp = getgrent();
assert_non_null(grp);
if (grp->gr_gid == 0) {
@@ -160,5 +151,4 @@
}
- fclose(group_file);
}