xbenjii / torrentexpander

Automatically exported from code.google.com/p/torrentexpander
0 stars 0 forks source link

Permission errors on destination folder #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm logged as User
2. /home/User/torrentexpander.sh /path/to/my/film

What do you see instead?
Your Destination Folder is /home/User

Permissions on your destination folder are incorrect please edit your 
torrentexpander_settings.ini file or your permissions for this folder

Permissions: ls -al /home/
drwxr-xr-x  4 User     www-data 4096 2012-01-18 12:25 User

Original issue reported on code.google.com by login...@gmail.com on 18 Jan 2012 at 11:29

GoogleCodeExporter commented 8 years ago
I won't chown or chmod the destination folder !
if the user makes a mistake when defining its destination path, this may be 
really dangerous.

Permissions will only be set for files and directories processed by 
torrentexpander.

Thanks

Original comment by addicted...@gmail.com on 18 Jan 2012 at 2:26

GoogleCodeExporter commented 8 years ago
Sure, but the problem is that script stops iteself and i do not know why.
Why "Permissions on your destination folder are incorrect?", this is my home 
dir!

N.B.  /path/to/my/film != /home/.....

Original comment by login...@gmail.com on 18 Jan 2012 at 5:30

GoogleCodeExporter commented 8 years ago
I think I see it now
The issue is located between lines 566 and 569 and I can't remember why I used 
such conditions.
Obviously, the condition in line 567 has to be added to the conditions in line 
568 but the rest of line 567 has to go.
I'll read again this part of the script in order to understand what happened 
and make sure there is no other issue like this one.
You can try to replace lines 567 and 568 by this line and let me know how it 
works :
if [ -d "$(dirname "$destination_folder")" ] && [ -w "$(dirname 
"$destination_folder")" ] && [ ! -d "$destination_folder" ]; then mkdir -p 
"$destination_folder"; fi

Thanks

Original comment by addicted...@gmail.com on 18 Jan 2012 at 5:55

GoogleCodeExporter commented 8 years ago
This issue should be solved in SVN revision 164.

Please confirm that it is working for you.

Also, I noticed an issue with multipart movies that should be solved now too.

Thanks

Original comment by addicted...@gmail.com on 18 Jan 2012 at 10:25

GoogleCodeExporter commented 8 years ago
No problem founded

Original comment by login...@gmail.com on 21 Jan 2012 at 3:31