diff options
| author | nr149220 <none@none> | 2005-08-07 13:36:09 -0700 |
|---|---|---|
| committer | nr149220 <none@none> | 2005-08-07 13:36:09 -0700 |
| commit | c575420f271c40ea2eeedc1455009854c541b396 (patch) | |
| tree | 3b52b0a566bfb6e7349f63c4442d7f1ed8e566f6 /usr/src/cmd/rcap | |
| parent | 94a877c40e5f86e1683202b4be3d5cd78fd0c27b (diff) | |
| download | illumos-joyent-c575420f271c40ea2eeedc1455009854c541b396.tar.gz | |
backout 6228013: cstyle errors
Diffstat (limited to 'usr/src/cmd/rcap')
| -rw-r--r-- | usr/src/cmd/rcap/common/rcapd_stat.h | 3 | ||||
| -rw-r--r-- | usr/src/cmd/rcap/rcapd/rcapd_main.c | 8 |
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. |
