SCCS-vsn: usr.sbin/sendmail/src/util.c 8.9
-static char sccsid[] = "@(#)util.c 8.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c 8.9 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
*p = '\0';
if (stat(fn, &stbuf) < 0)
break;
*p = '\0';
if (stat(fn, &stbuf) < 0)
break;
- if (stbuf.st_uid == uid && !bitset(S_IXUSR, stbuf.st_mode))
- break;
+ if (stbuf.st_uid == uid && bitset(S_IXUSR, stbuf.st_mode))
+ continue;
if (stbuf.st_gid == gid && bitset(S_IXGRP, stbuf.st_mode))
continue;
#ifndef NO_GROUP_SET
if (stbuf.st_gid == gid && bitset(S_IXGRP, stbuf.st_mode))
continue;
#ifndef NO_GROUP_SET
for (gp = gr->gr_mem; *gp != NULL; gp++)
if (strcmp(*gp, uname) == 0)
break;
for (gp = gr->gr_mem; *gp != NULL; gp++)
if (strcmp(*gp, uname) == 0)
break;
- if (*gp != NULL && !bitset(S_IXGRP, stbuf.st_mode))
- break;
+ if (*gp != NULL && bitset(S_IXGRP, stbuf.st_mode))
+ continue;
}
#endif
if (!bitset(S_IXOTH, stbuf.st_mode))
}
#endif
if (!bitset(S_IXOTH, stbuf.st_mode))