[SOLVED] Problem applying security patch
Neone
Joined: 2003-12-28
Posts: 54 |
![]() |
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 I don't know what to do now? haha ---- |
|
alindeman
![]()
Joined: 2002-10-06
Posts: 8194 |
![]() |
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 |
![]() |
AH! It worked. Thanks man |
|
zamba
![]()
Joined: 2002-08-19
Posts: 59 |
![]() |
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 Anybody got any ideas? (yes, the patch file is outside the gallery directory) Tony |
|
signe
![]()
Joined: 2003-07-27
Posts: 2322 |
![]() |
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
![]()
Joined: 2002-08-19
Posts: 59 |
![]() |
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
![]()
Joined: 2003-07-27
Posts: 2322 |
![]() |
Run the patch from inside your directory, but use "patch -p1" instead of -p0 |
|