{
DtMailValueDate ds = ((info.header_values[1])[0])->toDate();
- if (ds.dtm_date && ds.dtm_tz_offset_secs)
+#define USE_MAX_TZ_SECONDS (60 * 60 * 12)
+ if (ds.dtm_date && ds.dtm_tz_offset_secs >= -USE_MAX_TZ_SECONDS
+ && ds.dtm_tz_offset_secs <= USE_MAX_TZ_SECONDS)
{
#define USE_YEAR_FORMAT_SECONDS (60 * 60 * 24 * 180)
time_t now;
virtual void shutdown() = 0;
// Functions to manipulate group execution privileges
+#if defined(CSRG_BASED)
+ void disableGroupPrivileges(void) { (void) setegid(_originalRgid); }
+ void enableGroupPrivileges(void) { (void) setegid(_originalEgid); }
+#else
void disableGroupPrivileges(void) { (void) setgid(_originalRgid); }
void enableGroupPrivileges(void) { (void) setgid(_originalEgid); }
+#endif
gid_t originalEgid(void) { return _originalEgid; }
gid_t originalRgid(void) { return _originalRgid; }