Browse Source

fix TPWS for mac

pull/1488/head
izgib 2 months ago
parent
commit
5045c5927f
  1. 6
      tpws/params.h
  2. 3
      tpws/tpws.c

6
tpws/params.h

@ -24,7 +24,11 @@
#define IPCACHE_LIFETIME 7200 #define IPCACHE_LIFETIME 7200
#define MAX_GIDS 64 #if defined(__APPLE__)
# define MAX_GIDS 16
#else
# define MAX_GIDS 64
#endif
enum bindll { unwanted=0, no, prefer, force }; enum bindll { unwanted=0, no, prefer, force };

3
tpws/tpws.c

@ -997,8 +997,7 @@ void parse_params(int argc, char *argv[])
if (getgrouplist(optarg,pwd->pw_gid,params.gid,&params.gid_count)<0) if (getgrouplist(optarg,pwd->pw_gid,params.gid,&params.gid_count)<0)
#endif #endif
{ {
DLOG_ERR("getgrouplist failed. too much groups ?\n"); DLOG_CONDUP("WARNING ! May shrink needed groups.\n");
exit_clean(1);
} }
if (!params.gid_count) if (!params.gid_count)
{ {

Loading…
Cancel
Save