Commit e683633b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix; when sharing image; set the shared bit in the osid table

too!
parent b9093502
...@@ -596,11 +596,11 @@ DBQueryFatal("INSERT INTO images ". ...@@ -596,11 +596,11 @@ DBQueryFatal("INSERT INTO images ".
DBQueryFatal("INSERT INTO os_info ". DBQueryFatal("INSERT INTO os_info ".
"(osname, osid, ezid, description, OS, version, path, magic, ". "(osname, osid, ezid, description, OS, version, path, magic, ".
" osfeatures, pid, creator, created) ". " osfeatures, pid, creator, shared, created) ".
"VALUES ". "VALUES ".
" ('$imagename', '$imageid', 1, '$description', '$os_name', ". " ('$imagename', '$imageid', 1, '$description', '$os_name', ".
" '$os_version', NULL, NULL, '$os_features', '$pid', ". " '$os_version', NULL, NULL, '$os_features', '$pid', ".
" '$uid', now())"); " '$uid', $shared, now())");
for ($i = 0; $i < count($mtypes_array); $i++) { for ($i = 0; $i < count($mtypes_array); $i++) {
DBQueryFatal("REPLACE INTO osidtoimageid ". DBQueryFatal("REPLACE INTO osidtoimageid ".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment