diff options
author | Roy Marples <roy@marples.name> | 2007-10-04 16:54:29 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-04 16:54:29 +0000 |
commit | 87ea3e9e3bfa8e96b31d682f29fc7959bdd1b39e (patch) | |
tree | 78680e84573e0ef6d81ff46fa33c968d8f43f6da /src/env-update.c | |
parent | e2e40afddef5253d5d669002b9afbea6bf3d6c66 (diff) |
Punt rc_is_dir
Diffstat (limited to 'src/env-update.c')
-rw-r--r-- | src/env-update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/env-update.c b/src/env-update.c index aef50bc4..c9fbf1a8 100644 --- a/src/env-update.c +++ b/src/env-update.c @@ -132,9 +132,10 @@ int env_update (int argc, char **argv) STRLIST_FOREACH (files, file, i) { char *path = rc_strcatpaths (ENVDIR, file, (char *) NULL); char **entries = NULL; + struct stat buf; j = strlen (file); - if (! rc_is_dir (path) && + if (stat (file, &buf) == 0 && S_ISDIR (buf.st_mode) == 0 && j > 2 && *file >= '0' && *file <= '9' && |