From c2ced4a2aba6bdde3fdad77407cd528e8a11a446 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Tue, 9 Apr 2013 02:48:03 +0000 Subject: Don't try to open /.wireshark on Windows: Wireshark hasn't written to that directory since 2001 and reading from that directory was only left in for backwards compatibility with versions prior to r4702. I think it's now safe to remove that backwards compatibility. This eliminates the last argument of get_persconffile_path(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8437 svn path=/trunk/; revision=48797 --- disabled_protos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disabled_protos.c') diff --git a/disabled_protos.c b/disabled_protos.c index b85f1ed770..56b2622692 100644 --- a/disabled_protos.c +++ b/disabled_protos.c @@ -128,7 +128,7 @@ read_disabled_protos_list(char **gpath_return, int *gopen_errno_return, } /* Construct the pathname of the user's disabled protocols file. */ - ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE, FALSE); + ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE); /* If we already have a list of protocols, discard it. */ discard_existing_list (&disabled_protos); @@ -336,7 +336,7 @@ save_disabled_protos_list(char **pref_path_return, int *errno_return) *pref_path_return = NULL; /* assume no error */ - ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE, TRUE); + ff_path = get_persconffile_path(PROTOCOLS_FILE_NAME, TRUE); /* Write to "XXX.new", and rename if that succeeds. That means we don't trash the file if we fail to write it out -- cgit v1.2.3