Fix lsatt command.
authorAndre Noll <maan@systemlinux.org>
Sat, 29 Mar 2008 11:42:54 +0000 (12:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Mar 2008 11:42:54 +0000 (12:42 +0100)
attribute.c

index bfb6d3f..e7fba90 100644 (file)
@@ -166,7 +166,7 @@ static void com_lsatt_callback(int fd, const struct osl_object *query)
        if (laad.flags & LSATT_FLAG_REVERSE)
                pmd.pm_flags |= PM_REVERSE_LOOP;
        for_each_matching_row(&pmd);
-       if (!laad.pb.offset)
+       if (laad.pb.offset)
                pass_buffer_as_shm(laad.pb.buf, laad.pb.offset, &fd);
        free(laad.pb.buf);
 }