]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - attribute.c
afs: Replace DATABASE_DIR by a runtime config option.
[paraslash.git] / attribute.c
index 925795be2902e8aad7f45b1a3f67673397248186..af3dfb063be01ea0a8ec8c63cde0457d0dd5a600 100644 (file)
@@ -37,8 +37,7 @@ static struct osl_column_description att_cols[] = {
        }
 };
 
-static const struct osl_table_description attribute_table_desc = {
-       .dir = DATABASE_DIR,
+static struct osl_table_description attribute_table_desc = {
        .name = "attributes",
        .num_columns = NUM_ATT_COLUMNS,
        .flags = 0,
@@ -380,10 +379,11 @@ void attribute_shutdown(enum osl_close_flags flags)
        osl_close_table(attribute_table, flags);
 }
 
-int attribute_init(struct table_info *ti)
+int attribute_init(struct table_info *ti, const char *db)
 {
        int ret;
 
+       attribute_table_desc.dir = db;
        ti->desc = &attribute_table_desc;
        ret = osl_open_table(ti->desc, &ti->table);
        greatest_att_bitnum = -1; /* no atts available */