Skip to content

Conversation

Aditya30ag
Copy link

Replace the hardcoded 'FIXMETOBERELATIVE/pathinclude.php' placeholder paths with the correct system path '/usr/share/fossology/php/pathinclude.php' in utility scripts.

This fixes broken include statements that would cause fatal errors when these scripts are executed. The change aligns with the path used by other working CLI scripts in the codebase.

Files changed:

  • utils/freshmeat/mk_fmdirs.php
  • utils/freshmeat/diffm.php
  • utils/freshmeat/get-projects.php
  • utils/freshmeat/mktop1k.php
  • utils/fedora/get-fsrc.php

Fixes #3120

Description

// Before (broken):
require_once("FIXMETOBERELATIVE/pathinclude.php");

// After (fixed):
require_once("/usr/share/fossology/php/pathinclude.php");

How to test

Describe the steps required to test the changes proposed in the pull request.

Please consider using the closing keyword if the pull request is proposed to
fix an issue already created in the repository
(https://help.github.com/articles/closing-issues-using-keywords/)

…p path

Replace the hardcoded 'FIXMETOBERELATIVE/pathinclude.php' placeholder paths
with the correct system path '/usr/share/fossology/php/pathinclude.php' in
utility scripts.

This fixes broken include statements that would cause fatal errors when
these scripts are executed. The change aligns with the path used by other
working CLI scripts in the codebase.

Files changed:
- utils/freshmeat/mk_fmdirs.php
- utils/freshmeat/diffm.php
- utils/freshmeat/get-projects.php
- utils/freshmeat/mktop1k.php
- utils/fedora/get-fsrc.php

Fixes fossology#3120

Signed-off-by: Aditya30ag <adityaagrwal3005@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hardcoded FIXME Path in mk_fmdirs.php
2 participants