Just a small patch.

The wrong return value was checked in the if statement.

Albert

--------

--- bs_ssc.c    2008-07-17 19:19:10.000000000 +0200
+++ bs_ssc.c.new        2008-07-18 18:34:15.000000000 +0200
@@ -65,7 +65,7 @@
        case REZERO_UNIT:
                rew = lseek(fd, 0, SEEK_SET);
                curr_pos = lseek(fd, 0, SEEK_CUR);
-               if (ret)
+               if (rew)
                        set_medium_error(&result, &key, &asc);
                eprintf("Rewind Successful, File Pointer at %" PRIu64",%m\n",
                        curr_pos);

_______________________________________________
Stgt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/stgt-devel

Reply via email to