rej file not being generated

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

rej file not being generated

Post by Voiper99 »

Hi all, when performing a dry run for my PIA install, I received this message:

Code: Select all

patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 117.
Hunk #6 FAILED at 145.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
However, when I tried to find the .rej file to see what was wrong, I could not find it.

Code: Select all

/var/www/cacti# find / -name top_graph_header.php.rej
I ran the dry run with root permissions so I assume that the file should have had no issues being created?

Thanks everyone.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

--dry-run does not create any files, even .rej files.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Linegod wrote:--dry-run does not create any files, even .rej files.
Ah ok, thanks for the info. What does the "saving rejects to file include/top_graph_header.php.rej" line mean then? And how does the .rej files get created/how does one find out what errors occurred before applying the patches?
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

IIRC, run patch without --dry-run and use the '-o' switch.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

ah ok, thanks for that :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests