diff --git a/src/librc-misc.c b/src/librc-misc.c index 193b77c0..936fc730 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -159,7 +159,7 @@ char **rc_ls_dir (const char *dir, int options) d->d_name[l - 1] == 'h') continue; } - if (options & RC_LS_DIRS) { + if (options & RC_LS_DIR) { struct stat buf; if (stat (d->d_name, &buf) == 0 && ! S_ISDIR (buf.st_mode)) diff --git a/src/librc.c b/src/librc.c index 851e784d..3a3b53b0 100644 --- a/src/librc.c +++ b/src/librc.c @@ -68,7 +68,7 @@ librc_hidden_def(rc_runlevel_stopping) char **rc_runlevel_list (void) { - return (rc_ls_dir (RC_RUNLEVELDIR, RC_LS_DIRS)); + return (rc_ls_dir (RC_RUNLEVELDIR, RC_LS_DIR)); } librc_hidden_def(rc_runlevel_list) diff --git a/src/rc.h b/src/rc.h index 7be9849b..ddd54c67 100644 --- a/src/rc.h +++ b/src/rc.h @@ -461,7 +461,7 @@ bool rc_env_bool (const char *variable); /*! @name rc_ls_dir options */ /*! Ensure that an init.d service exists for each file returned */ #define RC_LS_INITD 0x01 -#define RC_LS_DIRS 0x02 +#define RC_LS_DIR 0x02 /*! Return a NULL terminted sorted list of the contents of the directory * @param dir to list