gphoto2 (current copy from CVS) doesn't check the
permissions of the directory it is attempting to
write to. I created a directory as root and tried to
write files to it as a regular user, and gphoto
didn't complain at all. In fact, it ran the progress
bar and everything looked normal. However, the
root-owned directory was in mode 750, and I did not
actually have permission to write any files there.
gphoto2 should have recognized that fact and
complained.
Actually, I'm not sure if the problem was with
gphoto2 or gtkam, so you may want to check both.
Logged In: YES
user_id=27487
I ran into a similar problem when downloading pictures from
my DC240. I got a "unspecified error" which is not really
usefull.
Logged In: YES
user_id=27487
gphoto2 (frontend program) does not check write permissions
prior downloading.
It then returns an unspecified error when attempting to
write the file. It is up to the frontend to check that.
Logged In: YES
user_id=18854
Confirmed as of 1/2003.
BTW, photo gets downloaded prior any check, check should be
done before trying to download. Raising priority, it's not
very difficult to correct.
Is there any info on this bug?
It has been reported in Debian too ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512883 ), and it's a grave bug (it may cause data loss, if one runs "gphoto2 -P && gphoto2 -D").
It should return an exit code different from 0.
See https://sourceforge.net/tracker/index.php?func=detail&aid=3109145&group_id=8874&atid=308874 , I attached a patch there.