1. 04 Mar, 2019 1 commit
    • Matthias Clasen's avatar
      trash portal: Fix permission checks · 147ac51f
      Matthias Clasen authored
      Implement the approach suggested in
      !276
      
      1. Try to open O_RDWR. On success, pass that fd
      2. If EACCESS => fail the trash op, we "need" read-write to successfully trash it
      3. If EISDIR => re-open the fd with O_PATH, and pass that (which will fail on snap,
         but verify the dir for flatpaks)
      147ac51f
  2. 01 Feb, 2019 1 commit