Changeset 134 for trunk/src/trustfile.c
- Timestamp:
- Oct 26, 2007, 12:20:10 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trustfile.c
r131 r134 507 507 #endif 508 508 509 int retval = SL_FALSE; 510 509 511 SL_ENTER(_("onlytrustedingrp")); 510 512 … … 603 605 /* now check ALL users for their GID !!! 604 606 */ 607 SH_MUTEX_LOCK(mutex_pwent); 608 605 609 while (NULL != (w = sh_getpwent())) 606 610 { … … 643 647 #endif 644 648 tf_baduid = w->pw_uid; 645 SL_IRETURN(SL_FALSE, _("onlytrustedingrp")); 649 retval = SL_FALSE; 650 goto out; 651 /* SL_IRETURN(SL_FALSE, _("onlytrustedingrp")); */ 646 652 } 647 653 } 648 654 } 655 retval = SL_TRUE; 656 657 out: 649 658 650 659 #ifdef HAVE_ENDPWENT 651 660 sh_endpwent(); 652 661 #endif 662 663 SH_MUTEX_UNLOCK(mutex_pwent); 664 653 665 /* TEST_ONLY */ 654 666 #endif 655 656 667 /* #ifdef HAVE_GETPWENT */ 657 668 #endif 658 669 659 670 #ifdef TRUST_DEBUG 660 fprintf(stderr, 661 "trustfile: group %ld: all members are trusted users --> OK\n", 662 (UID_CAST)grp); 671 if (retval == SL_TRUE) 672 fprintf(stderr, 673 "trustfile: group %ld: all members are trusted users --> OK\n", 674 (UID_CAST)grp); 663 675 #endif 664 676 /* all found 665 677 */ 666 SL_IRETURN( SL_TRUE, _("onlytrustedingrp"));678 SL_IRETURN(retval, _("onlytrustedingrp")); 667 679 } 668 680
Note:
See TracChangeset
for help on using the changeset viewer.