projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow more types of characters for uci package names
[project/uci.git]
/
file.c
diff --git
a/file.c
b/file.c
index
13fdd3b
..
5ec0032
100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-309,7
+309,7
@@
int uci_import(struct uci_context *ctx, FILE *stream, const char *name, struct u
* NB: the config file can still override the package name
*/
if (name) {
* NB: the config file can still override the package name
*/
if (name) {
- UCI_ASSERT(ctx, uci_validate_
name(nam
e));
+ UCI_ASSERT(ctx, uci_validate_
str(name, fals
e));
pctx->name = name;
}
pctx->name = name;
}
@@
-350,7
+350,7
@@
static char *uci_config_path(struct uci_context *ctx, const char *name)
{
char *filename;
{
char *filename;
- UCI_ASSERT(ctx, uci_validate_
name(nam
e));
+ UCI_ASSERT(ctx, uci_validate_
str(name, fals
e));
filename = uci_malloc(ctx, strlen(name) + strlen(ctx->confdir) + 2);
sprintf(filename, "%s/%s", ctx->confdir, name);
filename = uci_malloc(ctx, strlen(name) + strlen(ctx->confdir) + 2);
sprintf(filename, "%s/%s", ctx->confdir, name);