aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>1999-08-05 11:12:14 +0000
committerLaurent Deniel <laurent.deniel@free.fr>1999-08-05 11:12:14 +0000
commit2bd5536a7fd5c090aba06a8bdc0d52d5a62e5ec9 (patch)
treea81b2396c529e2baf23d54eb8a8ddf32e4ffeff5 /capture.c
parenteca1e74373de9fc1fb0ae1e3fa9a3e3bd1587824 (diff)
Use execlp instead of execl to scan the PATH for the
ethereal executable (but this is only performed if ethereal_path (i.e. arg[0]) does not contain any '/'). svn path=/trunk/; revision=445
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/capture.c b/capture.c
index e74e3ffcf3..abd8629e8c 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.40 1999/08/03 20:51:31 gram Exp $
+ * $Id: capture.c,v 1.41 1999/08/05 11:12:14 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -369,18 +369,18 @@ capture_prep_ok_cb(GtkWidget *ok_bt, gpointer parent_w) {
close(1);
dup(sync_pipe[1]);
close(sync_pipe[0]);
- execl(ethereal_path,"ethereal","-k","-Q","-i",cf.iface,"-w",cf.save_file,
- "-c", scount, "-s", ssnap, "-S",
- "-m", medium_font, "-b", bold_font,
- (cf.cfilter == NULL)? 0 : "-f", (cf.cfilter == NULL)? 0 : cf.cfilter,
- 0);
+ execlp(ethereal_path,"ethereal","-k","-Q","-i",cf.iface,"-w",cf.save_file,
+ "-c", scount, "-s", ssnap, "-S",
+ "-m", medium_font, "-b", bold_font,
+ (cf.cfilter == NULL)? 0 : "-f", (cf.cfilter == NULL)? 0 : cf.cfilter,
+ 0);
}
else {
- execl(ethereal_path,"ethereal","-k","-Q","-i",cf.iface,"-w",cf.save_file,
- "-c", scount, "-s", ssnap,
- "-m", medium_font, "-b", bold_font,
- (cf.cfilter == NULL)? 0 : "-f", (cf.cfilter == NULL)? 0 : cf.cfilter,
- 0);
+ execlp(ethereal_path,"ethereal","-k","-Q","-i",cf.iface,"-w",cf.save_file,
+ "-c", scount, "-s", ssnap,
+ "-m", medium_font, "-b", bold_font,
+ (cf.cfilter == NULL)? 0 : "-f", (cf.cfilter == NULL)? 0 : cf.cfilter,
+ 0);
}
}
else {