X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=5672309ada3b65dfadad0f1a3ba7f4881e52740c;hp=638e22ea70fe5e5bb5ebac55f0e296db387adc5c;hb=05e3b9416f4d08b49c3a18dce78e2e9235f94e7c;hpb=1745a87654ce08b57c46ce0870d8571eacbe27c9 diff --git a/attribute.c b/attribute.c index 638e22ea..5672309a 100644 --- a/attribute.c +++ b/attribute.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2012 Andre Noll + * Copyright (C) 1997-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -162,7 +162,7 @@ static void com_lsatt_callback(int fd, const struct osl_object *query) }; struct pattern_match_data pmd = { .table = attribute_table, - .loop_col_num = ATTCOL_BITNUM, + .loop_col_num = ATTCOL_NAME, .match_col_num = ATTCOL_NAME, .patterns = {.data = (char *)query->data + sizeof(laad.flags), .size = query->size - sizeof(laad.flags)}, @@ -171,7 +171,7 @@ static void com_lsatt_callback(int fd, const struct osl_object *query) .action = print_attribute }; if (laad.flags & LSATT_FLAG_SORT_BY_ID) - pmd.loop_col_num = ATTCOL_NAME; + pmd.loop_col_num = ATTCOL_BITNUM; if (laad.flags & LSATT_FLAG_REVERSE) pmd.pm_flags |= PM_REVERSE_LOOP; for_each_matching_row(&pmd);