Changeset 462
- Timestamp:
- Jan 16, 2015, 8:45:20 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r461 r462 1 1 3.1.4: 2 * fix buffer allocation for getgrnam_r for large groups 3 (problem reported by Sergio B) 2 4 * search RPM in $HOME/rpmbuild if test -d _topdir fails (CentOS 3 5 recommends '%(echo $HOME)/topdir', reported by E. Taft) 4 6 5 3.1.3 :7 3.1.3 (01-11-2014): 6 8 * remove initgroups() from the popen call in unix entropy gatherer 7 9 * Add error message for update mode if local baseline cannot be found 8 10 9 3.1.2 :11 3.1.2 (07-08-2014): 10 12 * Fixed incorrect memset in sh_checksum.c (sha256) 11 13 * Circumvent a gcc compiler bug with inline asm (gcc 4.8) … … 24 26 * Fix a free() on NULL (harmless but avoids spurious warning) 25 27 26 3.1.1 (01-0 -2014):28 3.1.1 (01-05-2014): 27 29 * Disable inline asm on Cygwin (issue reported by Erik) 28 30 * Fix sh_ipvx_is_ipv4 such that numeric hostnames are not -
trunk/docs/FAQ.html
r101 r462 139 139 </ul> 140 140 </div> 141 <p><i>FAQ Revised: Saturday 14 April 2007 17:05:58</i></p>141 <p><i>FAQ Revised: Wednesday 14 January 2015 20:41:15</i></p> 142 142 <hr><h2>Table of Contents</h2> 143 143 <dl> … … 148 148 <li><a href="#Most frequently2">1.3. It does not log anything / Can't stop logging to console</a></li> 149 149 <li><a href="#Most frequently3">1.4. Client cannot self-resolve, but nslookup works fine</a></li> 150 <li><a href="#Most frequently4">1.5. Server logs hostname instead of FQDN (or vice versa)</a></li> 150 151 </ul></dd> 151 152 <dt><b>2. Build and install</b></dt> … … 332 333 xxx.xxx.xxx.xxx myhost.mydomain.tld myhost 333 334 </pre></div><br><br></dd> 335 <dt><b><a name="Most frequently4">1.5. Server logs hostname instead of FQDN (or vice versa)</a></b></dt> 336 <dd>The default is to log the hostname only, if you want the FQDN 337 then there is an option for the server configuration: 338 <div class="block"><pre> 339 [Misc] 340 SetStripDomain = true / false 341 </pre></div><br><br></dd> 334 342 </dl> 335 343 <hr><h2>2. Build and install</h2> -
trunk/src/sh_unix.c
r460 r462 1012 1012 struct group grp; 1013 1013 char * buffer; 1014 static size_t gbufsize = SH_GRBUF_SIZE; 1014 1015 #endif 1015 1016 … … 1035 1036 1036 1037 #if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R) 1037 buffer = SH_ALLOC(SH_GRBUF_SIZE); 1038 status = sh_getgrnam_r(g, &grp, buffer, SH_GRBUF_SIZE, &w); 1038 1039 buffer = SH_ALLOC(gbufsize); 1040 status = sh_getgrnam_r(g, &grp, buffer, gbufsize, &w); 1041 1042 if ((status == ERANGE) && (w == NULL)) 1043 { 1044 if (SL_TRUE == sl_ok_adds( gbufsize, SH_GRBUF_SIZE )) 1045 { 1046 SH_FREE(buffer); 1047 gbufsize += SH_GRBUF_SIZE; 1048 goto is_a_name; 1049 } 1050 } 1051 1039 1052 #else 1053 1040 1054 errno = 0; 1041 1055 w = sh_getgrnam(g); 1042 1056 status = errno; 1057 1043 1058 #endif 1044 1059
Note:
See TracChangeset
for help on using the changeset viewer.