[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1000584: inkscape: confused by set-group-ID on directory



Control: tag -1 moreinfo

Hi,

I believe you might be confused here:

On Thu, Nov 25, 2021 at 01:12:57PM +0100, Francesco Potortì wrote:
> I have a directory X with permissions drwxrwsr-x and umask 0002
> 
> I start Inkscape from a dirrente directory, read a pdf file from X and
> export a bitmap conversion to directory X.
> 
> The file permissions are -rw------- (they should be -rw-rw-r--)

That's the standard file permissions for temporary files.

> I remove the file and export again.  This time the file permissions are
> -rw-r--r-- (they should be -rw-rw-r--).

I can't reproduce this: if I try, the new file is, again, -rw-------.


However, there is a point: when you say "you have directory X with […]
umask 0002".  umask is not a property of a directory, but of a currently
running process; a property that gets inherited.

Which means that for that umask to take effect, you'd likely need to
open a terminal, run `umask 0002 && inkscape` (assuming you didn't
change umask system-wide).
If I do that, then the exported file has permissions -rw-rw-r-- all the
time I export it.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: