]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - blob.c
blob_get_name_by_id(): Treat id of dummy row as invalid.
[paraslash.git] / blob.c
diff --git a/blob.c b/blob.c
index 1a411823ea25aa9ad46fc644da27175e90e8d4be..ca39de0db5fc8fdb15009d0ed1c46ec14ca15087 100644 (file)
--- a/blob.c
+++ b/blob.c
@@ -264,7 +264,7 @@ static int com_rmblob_callback(struct osl_table *table,
        else {
                para_printf(&aca->pbout, "removed %d blob(s)\n",
                        pmd.num_matches);
-               ret = afs_event(BLOB_RENAME, NULL, table);
+               ret = afs_event(BLOB_REMOVE, NULL, table);
        }
 out:
        return ret;
@@ -496,6 +496,8 @@ static int blob_get_name_by_id(struct osl_table *table, uint32_t id,
        ret = osl(osl_get_object(table, row, BLOBCOL_NAME, &obj));
        if (ret < 0)
                return ret;
+       if (*(char *)obj.data == '\0')
+               return -E_DUMMY_ROW;
        *name = (char *)obj.data;
        return 1;
 }