My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 52: Permission errors on destination folder
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  login...@gmail.com
Closed:  Jan 2012


 
Project Member Reported by login...@gmail.com, Jan 18, 2012
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
Jan 18, 2012
Project Member #1 addicted...@gmail.com
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
Jan 18, 2012
Project Member #2 login...@gmail.com
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/.....
Jan 18, 2012
Project Member #3 addicted...@gmail.com
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
Jan 18, 2012
Project Member #4 addicted...@gmail.com
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
Jan 21, 2012
Project Member #5 login...@gmail.com
No problem founded
Status: Fixed

Powered by Google Project Hosting