Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014514
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:30:23+00:00 2026-05-20T09:30:23+00:00

I want to patch kohana with a file called request.patch, which I have in

  • 0

I want to patch kohana with a file called request.patch, which I have in the root directory of my Kohana install. I am using cygwin in windows 7. The patch reads as follows:

820a821,823
>           // Convert dashes to underscores
>           $controller = strtr($this->controller, '-', '');
>           
822c825
<           $class = new ReflectionClass($prefix.$this->controller);
---
>           $class = new ReflectionClass($prefix.$controller);
831a835,837
>           
>           // Convert action dashes to underscores
>           $action = strtr($action, '-', '');

However when I cd to the kohana root and then try and apply this patch:

/cygdrive/c/cygwin/bin/patch.exe -p0 < request.patch

I receive the following error:

can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch:

I mean I’d even just do this manually if I knew what files the numbers were refering to?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:30:23+00:00Added an answer on May 20, 2026 at 9:30 am

    Honestly, I’m not sure that’s a proper patch file. It doesn’t have the filenames or anything (hence the error). Might better to grab the patch from github. You can append .patch on the end of a commit to get a proper patch file.

    The numbers would be the line numbers in the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a file in my kohana 3 website called assets/somefile.jpg . I
I have a device driver I want to patch. This device driver calls IOLog
I have a model with validations defined, I want to monkey patch the model
I want to specify a file system path as part of a Spring bean
I want to make sure a file path set via query string does not
I don't want to type /cygdrive/c/path/to/stuff, especially when using tools that don't know anything
If you know the local path and file name of the file you want
I have a virtual path (example: ~/Images/Banner.jpg) and I want to make that an
I want to setup a minimal set of cygwin applications (ls, diff, path, find,
I have a nested movie clip instance that I want to access. The path

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.