mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-16 13:56:52 +00:00
- (dtucker) [openbsd-compat/pwcache.c] Shrink ifdef area to prevent unused
variable warnings.
This commit is contained in:
parent
dab129bef5
commit
612e400c68
@ -9,6 +9,8 @@
|
|||||||
- markus@cvs.openbsd.org 2010/01/15 09:24:23
|
- markus@cvs.openbsd.org 2010/01/15 09:24:23
|
||||||
[sftp-common.c]
|
[sftp-common.c]
|
||||||
unused
|
unused
|
||||||
|
- (dtucker) [openbsd-compat/pwcache.c] Shrink ifdef area to prevent unused
|
||||||
|
variable warnings.
|
||||||
|
|
||||||
20100115
|
20100115
|
||||||
- (dtucker) OpenBSD CVS Sync
|
- (dtucker) OpenBSD CVS Sync
|
||||||
|
@ -58,12 +58,12 @@ user_from_uid(uid_t uid, int nouser)
|
|||||||
|
|
||||||
cp = c_uid + (uid & MASK);
|
cp = c_uid + (uid & MASK);
|
||||||
if (cp->uid != uid || cp->name == NULL) {
|
if (cp->uid != uid || cp->name == NULL) {
|
||||||
#ifdef HAVE_SETPASSENT
|
|
||||||
if (pwopen == 0) {
|
if (pwopen == 0) {
|
||||||
|
#ifdef HAVE_SETPASSENT
|
||||||
setpassent(1);
|
setpassent(1);
|
||||||
|
#endif
|
||||||
pwopen = 1;
|
pwopen = 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if ((pw = getpwuid(uid)) == NULL) {
|
if ((pw = getpwuid(uid)) == NULL) {
|
||||||
if (nouser)
|
if (nouser)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
@ -93,12 +93,12 @@ group_from_gid(gid_t gid, int nogroup)
|
|||||||
|
|
||||||
cp = c_gid + (gid & MASK);
|
cp = c_gid + (gid & MASK);
|
||||||
if (cp->gid != gid || cp->name == NULL) {
|
if (cp->gid != gid || cp->name == NULL) {
|
||||||
#ifdef HAVE_SETGROUPENT
|
|
||||||
if (gropen == 0) {
|
if (gropen == 0) {
|
||||||
|
#ifdef HAVE_SETGROUPENT
|
||||||
setgroupent(1);
|
setgroupent(1);
|
||||||
|
#endif
|
||||||
gropen = 1;
|
gropen = 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if ((gr = getgrgid(gid)) == NULL) {
|
if ((gr = getgrgid(gid)) == NULL) {
|
||||||
if (nogroup)
|
if (nogroup)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user