Menu

#48 gphoto2 ignores file permissions on dirs

open
None
8
2003-01-14
2001-08-17
Anonymous
No

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.

Discussion

  • Hubert Figuière

    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.

     
  • Hubert Figuière

    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.

     
  • Hubert Figuière

    • assigned_to: nobody --> hfiguiere
     
  • Arnaud Launay

    Arnaud Launay - 2003-01-14

    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.

     
  • Arnaud Launay

    Arnaud Launay - 2003-01-14
    • priority: 5 --> 8
     
  • Hubert Figuière

    • assigned_to: hfiguiere --> asl
     
  • David Paleino

    David Paleino - 2010-11-12

    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.

     

Log in to post a comment.