diff options
| author | mjnelson <none@none> | 2005-08-08 18:57:16 -0700 |
|---|---|---|
| committer | mjnelson <none@none> | 2005-08-08 18:57:16 -0700 |
| commit | 18b713c311a4e361cf306308a9b9ac89f4fde65d (patch) | |
| tree | f127dc3d4e5c564728b92346489ae5a9758e7fd2 /usr/src/cmd/rcap | |
| parent | 1574ae68edf276820812b92d6c9f22e8f4049860 (diff) | |
| download | illumos-joyent-18b713c311a4e361cf306308a9b9ac89f4fde65d.tar.gz | |
backout 6228013: lint warning
Diffstat (limited to 'usr/src/cmd/rcap')
| -rw-r--r-- | usr/src/cmd/rcap/common/rcapd_stat.h | 5 | ||||
| -rw-r--r-- | usr/src/cmd/rcap/rcapd/rcapd_main.c | 9 |
2 files changed, 3 insertions, 11 deletions
diff --git a/usr/src/cmd/rcap/common/rcapd_stat.h b/usr/src/cmd/rcap/common/rcapd_stat.h index c34ceb36e2..6de7e3f1f4 100644 --- a/usr/src/cmd/rcap/common/rcapd_stat.h +++ b/usr/src/cmd/rcap/common/rcapd_stat.h @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -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 c5d54b8df3..2753a0aed3 100644 --- a/usr/src/cmd/rcap/rcapd/rcapd_main.c +++ b/usr/src/cmd/rcap/rcapd/rcapd_main.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -891,13 +891,6 @@ update_statistics(void) static char template[LINELEN]; /* - * Try to create a directory irrespective of whether it is existing - * or not. If it is not there then it will create. Otherwise any - * way it will fail at mkstemp call below. - */ - mkdir(STAT_FILE_DIR, 755); - - /* * Create a temporary file. */ if (sizeof (template) < (strlen(rcfg.rcfg_stat_file) + |
