]> git.wh0rd.org - dump.git/blobdiff - compat/lib/compatglob.c
Be sure the di_size in a map header has the correct value.
[dump.git] / compat / lib / compatglob.c
index 23fc61c9af346a7fd4d6ab16720b8ce4b698351f..8cf77eaa96447a97c8683aca3702aec8ee261482 100644 (file)
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: compatglob.c,v 1.8 2002/01/25 15:08:59 stelian Exp $";
+       "$Id: compatglob.c,v 1.10 2003/10/26 16:05:46 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
+#include <sys/types.h>
 
 #ifndef HAVE_GLOB
 
@@ -362,7 +359,7 @@ globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob)
                 * the password file
                 */
                if (
-#ifndef __linux__
+#if !defined(__linux__) && !defined(sunos)
 #ifndef        __NETBSD_SYSCALLS
                    issetugid() != 0 ||
 #endif