.br
For historical reasons
-.B files
-was originally used instead in place of
-.B lustre
-to enable auth by lustre files. At the time of writing
-.B files
-is still widely used where
-.B lustre
-is intended.
-This alias is now officially deprecated and using it will generate periodic
-warnings. The alias will be removed in a future release.
-As an alternative
.B nss_files
-can be specified for the
+was needed to use the
.BR nss (5)
.B files
module.
+This alias is now deprecated and will be removed in a future release.
.SH OPTIONS
.TP
.B -d
const char *perm_warning = PERM_PATHNAME "-warning";
struct stat sbuf;
const char msg[] =
- "Use 'lookup lustre'. The 'files' alias is deprecated.\n";
+ "Use 'lookup files'. The 'nss_files' alias is deprecated.\n";
if (stat(perm_warning, &sbuf)) {
if (errno == ENOENT)
}
}
-/** initialize module to access local /etc/lustre/passwd,group files */
-static int init_lustre_files_module(struct nss_module *mod,
- struct timeval *start)
-{
- do_warn_interval(start);
- return init_lustre_module(mod);
-}
-
/**
* Check and parse lookup db config line.
* File should start with 'lookup' followed by the modules
else
return -ERANGE;
- if (!strcmp(tok, "files"))
- ret = init_lustre_files_module(newmod, start);
- else if (!strcmp(tok, "lustre"))
+ if (!strcmp(tok, "lustre"))
ret = init_lustre_module(newmod);
- else if (!strcmp(tok, "nss_files"))
+ else if (!strcmp(tok, "nss_files")) {
+ do_warn_interval(start);
ret = init_nss_lib_module(newmod, "files");
- else
+ } else
ret = init_nss_lib_module(newmod, tok);
if (ret)