LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
patch i made problem


Hi,
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:


Code:
patching file index.php
Hunk #1 FAILED at 108.
1 out of 1 hunk FAILED -- saving rejects to file index.php.rej
index.inc.php, section form line 108
Code:
        $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
Code:
diff --exclude='*~' --exclude='*.odt' --exclude='tpls_c*' --exclude='chat*' --exclude=config.inc.php -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, 06:52 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

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


Reply



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 10:38 PM
Problem with booting a self-made floppy distro d1s4st3r Linux - General 2 01-11-2006 07:22 AM
login problem - i made a mistake ballam Linux - Newbie 18 07-15-2004 08:12 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
I made the move from mandrake to slack...but one problem... spade Slackware - Installation 3 03-16-2004 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 PM.

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