LS_DIRS -> LS_DIR
This commit is contained in:
parent
15fde9a796
commit
af5525f634
@ -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))
|
||||
|
@ -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)
|
||||
|
||||
|
2
src/rc.h
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user