summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/rcap/common/rcapd_stat.h3
-rw-r--r--usr/src/cmd/rcap/rcapd/rcapd_main.c8
2 files changed, 1 insertions, 10 deletions
diff --git a/usr/src/cmd/rcap/common/rcapd_stat.h b/usr/src/cmd/rcap/common/rcapd_stat.h
index f788471a2b..aa19d2af84 100644
--- a/usr/src/cmd/rcap/common/rcapd_stat.h
+++ b/usr/src/cmd/rcap/common/rcapd_stat.h
@@ -36,8 +36,7 @@ extern "C" {
/*
* Default path to statistics file
*/
-#define STAT_FILE_DIR "/var/run/daemon"
-#define STAT_FILE_DEFAULT STAT_FILE_DIR "/rcap.stat"
+#define STAT_FILE_DEFAULT "/var/run/daemon/rcap.stat"
/*
* Statistics file header.
diff --git a/usr/src/cmd/rcap/rcapd/rcapd_main.c b/usr/src/cmd/rcap/rcapd/rcapd_main.c
index 0ece80df8d..d7e1c163c8 100644
--- a/usr/src/cmd/rcap/rcapd/rcapd_main.c
+++ b/usr/src/cmd/rcap/rcapd/rcapd_main.c
@@ -889,14 +889,6 @@ update_statistics(void)
{
int fd, res;
static char template[LINELEN];
-
- /*
- * Try to create a directory irrespecitve of whether it is existing or not.
- * If it is not there then it will create. Otherwise any way it will fail at
- * at mkstemp call below.
- */
-
- mkdir(STAT_FILE_DIR, 755);
/*
* Create a temporary file.