forked from osmocom/wireshark
chmod() the temporary capture file to 0600 so that only the user can
read the trace. We chmod() after pcap creates the file, but before it actually writes data there. Thanks to Frederic Peters <fpeters@multimania.com>, the Debian maintainer of Ethereal, for pointing this out. svn path=/trunk/; revision=413
This commit is contained in:
parent
7d8d76e7d6
commit
c31abd81fa
|
@ -1,7 +1,7 @@
|
|||
/* capture.c
|
||||
* Routines for packet capture windows
|
||||
*
|
||||
* $Id: capture.c,v 1.37 1999/07/28 20:17:14 deniel Exp $
|
||||
* $Id: capture.c,v 1.38 1999/07/31 23:06:13 gram Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -34,6 +34,10 @@
|
|||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -435,7 +439,7 @@ capture(void) {
|
|||
pcap_close(pch);
|
||||
return;
|
||||
}
|
||||
|
||||
chmod(cf.save_file, 0600);
|
||||
ld.linktype = pcap_datalink(pch);
|
||||
|
||||
if (cf.cfilter) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: configure.in,v 1.32 1999/07/20 08:02:15 guy Exp $
|
||||
# $Id: configure.in,v 1.33 1999/07/31 23:06:13 gram Exp $
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(etypes.h)
|
||||
|
||||
|
@ -12,6 +12,7 @@ AC_PROG_CC
|
|||
AC_PROG_CPP
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_YACC
|
||||
AM_PROG_LEX
|
||||
|
||||
# If we're running gcc, add '-Wall' to CFLAGS.
|
||||
AC_MSG_CHECKING(to see if we can add '-Wall' to CFLAGS)
|
||||
|
@ -80,7 +81,7 @@ fi
|
|||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h netdb.h)
|
||||
AC_CHECK_HEADERS(sys/sockio.h sys/types.h netinet/in.h sys/socket.h net/if.h)
|
||||
AC_CHECK_HEADERS(sys/stat.h sys/sockio.h sys/types.h netinet/in.h sys/socket.h net/if.h)
|
||||
|
||||
dnl SNMP Check
|
||||
AC_ARG_ENABLE(snmp,
|
||||
|
|
Loading…
Reference in New Issue