Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-26-2006, 06:30 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
patch i made problem

this is my first post on this forum

My problem is with a patch i have made:
I really don't understand why it fails.

patch was made with this options:
# diff -Pua oldfile.php newfile.php > patch-diff

when i run:
# patch -p1 < patch.diff
i get:

patching file index.php
Hunk #1 FAILED at 108.
1 out of 1 hunk FAILED -- saving rejects to file index.php.rej, section form line 108
        $module = $startmodule;
    } else {
        // or as the default value summary
        $module = 'summary';

// redirect to where the user wanted to go, except logout page
if (strlen($_REQUEST['return_path']) and !ereg('logout', $_REQUEST['return_path'])) {
    $return_path = urldecode($_REQUEST['return_path']);
    if($return_path == '/'){
        $return_path .= 'index.php';
patch file
diff --exclude='*~' --exclude='*.odt' --exclude='tpls_c*' --exclude='chat*' -Puar old/index.php new/index.php
--- old/index.php	2006-03-23 20:14:08.000000000 +0100
+++ new/index.php	2006-04-11 00:39:29.000000000 +0200
@@ -108,7 +108,7 @@
         $module = $startmodule;
     } else {
         // or as the default value summary
-        $module = 'summary';
+        $module = 'modulistica';
Old 04-26-2006, 07:52 PM   #2
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
What's in index.php.rej ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question/Problem with SDL_ttf program I made... RHLinuxGUY Programming 6 04-26-2006 11:38 PM
Problem with booting a self-made floppy distro d1s4st3r Linux - General 2 01-11-2006 08:22 AM
login problem - i made a mistake ballam Linux - Newbie 18 07-15-2004 09:12 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-21-2004 12:14 AM
I made the move from mandrake to slack...but one problem... spade Slackware - Installation 3 03-16-2004 09:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration