aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
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) {