#59 gentoo can't copy sockets, pipes and device nodes

closed-fixed
Emil Brink
Commands (9)
3
2011-10-04
2011-03-24
farwayer
No

If file is no one of type G_FILE_TYPE_REGULAR, G_FILE_TYPE_DIRECTORY, G_FILE_TYPE_SYMBOLIC_LINK (or directory contains this file) the application call g_error() function and abort. Perhaps it would be better to show a alert to the user and allow him to choose what to do next (may skip the file)?
Issue in copy_gfile() function.

Discussion

  • farwayer
    farwayer
    2011-03-24

    • priority: 5 --> 3
    • summary: aboting while coping unregular files --> abort while coping unregular files
     
  • Emil Brink
    Emil Brink
    2011-04-25

    I rewrote the title of the bug to be a bit more descriptive.

    The problem is that there is no straight-forward way using GIO to copy the types of objects that gentoo is currently failing for.

    Of course the code used to exist, in the old straight-up POSIX-based code base (before GIO). However, mixing that code with GIO feels bit weird. I'm investigating to even find out how to create e.g. a device node using GIO, and I think I have a few leads.

     
  • Emil Brink
    Emil Brink
    2011-04-25

    • summary: abort while coping unregular files --> gentoo can't copy sockets, pipes and device nodes
     
  • Emil Brink
    Emil Brink
    2011-09-28

    I've implemented this, pretty much by ignoring GIO and reverting to using POSIX calls.

    Also I don't think "sockets" should be here, it never makes sense to copy a Unix domain socket.

    Marking as "fixed", will close after the next release.

     
  • Emil Brink
    Emil Brink
    2011-09-28

    • status: open --> open-fixed
     
  • Emil Brink
    Emil Brink
    2011-10-04

    • status: open-fixed --> closed-fixed
     
  • Emil Brink
    Emil Brink
    2011-10-04

    Closing this, fix is in 0.19.12 which was just released. Note that it will only work for local files.