aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-04 16:16:06 +0000
committerRoy Marples <roy@marples.name>2007-10-04 16:16:06 +0000
commitbb9ad38de2dab93c5cdb0745b055c3346b6684c9 (patch)
treeb4b9d9492d6eacebce16542bd7d9a158d731e8bd /src/librc-misc.c
parentbd83448633f7e3a2d9d37120090bf3e0460c059a (diff)
Punt rc_is_file
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r--src/librc-misc.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c
index 1db360dc..a8709903 100644
--- a/src/librc-misc.c
+++ b/src/librc-misc.c
@@ -151,21 +151,6 @@ bool rc_exists (const char *pathname)
}
librc_hidden_def(rc_exists)
-bool rc_is_file (const char *pathname)
-{
- struct stat buf;
-
- if (! pathname)
- return (false);
-
- if (stat (pathname, &buf) == 0)
- return (S_ISREG (buf.st_mode));
-
- errno = 0;
- return (false);
-}
-librc_hidden_def(rc_is_file)
-
bool rc_is_dir (const char *pathname)
{
struct stat buf;
@@ -447,7 +432,7 @@ char **rc_env_filter (void)
if (! whitelist)
return (NULL);
- if (rc_is_file (PROFILE_ENV))
+ if (rc_exists (PROFILE_ENV))
profile = rc_config_load (PROFILE_ENV);
STRLIST_FOREACH (whitelist, env_name, count) {