dovecot-2.0: str_to_gid(): Allow negative GIDs on OS X.
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 19 16:03:52 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/3ee6b83c1689
changeset: 11329:3ee6b83c1689
user: Timo Sirainen <tss at iki.fi>
date: Wed May 19 14:59:11 2010 +0200
description:
str_to_gid(): Allow negative GIDs on OS X.
diffstat:
src/lib/strnum.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 0877d6920960 -r 3ee6b83c1689 src/lib/strnum.c
--- a/src/lib/strnum.c Wed May 19 13:20:06 2010 +0200
+++ b/src/lib/strnum.c Wed May 19 14:59:11 2010 +0200
@@ -198,8 +198,11 @@
if (str_to_uintmax(str, &l) < 0)
return -1;
+ /* OS X uses negative GIDs */
+#ifndef __APPLE__
if (verify_xid(l, sizeof(*num_r)) < 0)
return -1;
+#endif
*num_r = (gid_t)l;
return 0;
}
More information about the dovecot-cvs
mailing list