[SOLVED] Problem applying security patch

Neone

Joined: 2003-12-28
Posts: 54
Posted: Sun, 2004-06-27 18:53

This is what I get, the patch partionally works :P haha

Quote:
-bash-2.05b$ patch -p0 < gallery-1.4.3-pl1_to_pl2.patch
patching file gallery/ChangeLog
patching file gallery/Version.php
patching file gallery/docs/g1package/index.html
patching file gallery/init.php
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r gallery-1.4.3-pl1/setup/check.inc gallery/setup/check.inc
|--- gallery-1.4.3-pl1/setup/check.inc Sun Apr 11 15:03:42 2004
|+++ gallery/setup/check.inc Thu May 6 03:05:29 2004
--------------------------
File to patch:
[2]+ Stopped patch -p0 <gallery-1.4.3-pl1_to_pl2.patch

I don't know what to do now? haha
Anyone have any clues?

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.uvpucko.com/gallery
Gallery version: Latest
Apache version: 1.3.31 (Unix)
PHP version (don't just say PHP 4, please): 4.3.7
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2004-06-27 19:49

If your setup directory is chmodded 0, you might need to chmod it 755 or 777 temporarily before doing the patch (if you're non-root)

 
Neone

Joined: 2003-12-28
Posts: 54
Posted: Sun, 2004-06-27 19:54

AH! It worked. Thanks man :)

 
zamba
zamba's picture

Joined: 2002-08-19
Posts: 59
Posted: Mon, 2004-06-28 05:18

Unfortunately, it didn't for me! I chmodded the setup directory and htaccess/config.php 777 and still got this result:

[travel@host3 travelsignposts-www]$ patch -p0 < gallery-1.4.3-pl1_to_pl2.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r gallery-1.4.3-pl1/ChangeLog gallery/ChangeLog
|--- gallery-1.4.3-pl1/ChangeLog Wed May 5 15:56:38 2004
|+++ gallery/ChangeLog Tue Jun 1 08:40:42 2004
--------------------------
File to patch:

Anybody got any ideas? (yes, the patch file is outside the gallery directory)

Tony

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-06-28 08:13

Is your gallery directory named 'gallery'? Are you running the patch from the location the gallery directory is in (and not inside the gallery directory itself)?

 
zamba
zamba's picture

Joined: 2002-08-19
Posts: 59
Posted: Mon, 2004-06-28 11:40

Thanks, Signe, I am running it outside the gallery directory as I commented in the post, but I am not using "gallery" as my directory but "Destinations". When I checked the patch code (I'm not very good at this, obviously) I thought this would not matter as I assumed the apparent use of the GALLLERY_BASEDIR would get over this.

What should I change to get around this, I am clearly out of my depth down here in Oz...

Tony

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-06-28 14:35

Run the patch from inside your directory, but use "patch -p1" instead of -p0