Matt Taggart wrote:
Log Message:
-----------
added creating and setting owner of license.bsam.new to fossy explictly. If the file doesn't exist, single system package install creates the file as roo
t:fossy and that causes the bsam license cache step to fail

Modified Paths:
--------------
    trunk/fossology/cli/libschema.php

Modified: trunk/fossology/cli/libschema.php
===================================================================
--- trunk/fossology/cli/libschema.php   2010-02-05 17:24:13 UTC (rev 2768)
+++ trunk/fossology/cli/libschema.php   2010-02-05 18:39:34 UTC (rev 2769)
@@ -492,6 +492,19 @@
                        return(1);
                }
        }
+       /* before using the temp file, make sure fossy is the owner */
+ if(!(touch($Tempfile))) + {
+       print "    FATAL! Cannot create file $Tempfile\n";
+               flush();
+               return(1);
+       }
+       if(!(chown($Tempfile, 'fossy')))

Maybe this should be "$PROJECTUSER"? I don't think we've ever tested using a user other than fossy, but the support is supposed to be there at least.

Matt,
Thanks, I meant to do that before checking it in!
--
Mark Donohoe
OS&T, Cupertino CA.
fossology.org

_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to