poldek --mkidx does not respect umask
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
poldek |
Fix Committed
|
Medium
|
Marcin Banasiak |
Bug Description
poldek --mkidx does not respect umask:
i've set umask to 002 so files are group writable, but poldek writes with hardcoded 644:
-rw-r--r-- 1 gitlab-runner gitlab-runner 704 nov 23 19:15 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 316 nov 23 19:15 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 1,4K nov 23 19:15 packages.ndir.gz
-rw-r--r-- 1 gitlab-runner gitlab-runner 50 nov 23 19:15 packages.ndir.md
so i've chmod g+rw the files, and run index again:
drwxr-sr-x 2 gitlab-runner gitlab-runner 220 nov 23 19:20 packages.i/
-rw-rw-r-- 1 gitlab-runner gitlab-runner 705 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 32 nov 23 19:20 packages.
-rw-rw-r-- 1 gitlab-runner gitlab-runner 316 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 32 nov 23 19:20 packages.
-rw-rw-r-- 1 gitlab-runner gitlab-runner 1,4K nov 23 19:20 packages.ndir.gz
-rw-r--r-- 1 gitlab-runner gitlab-runner 32 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 40 nov 23 19:20 packages.ndir.md
it has reset some, and yet packages.i created with it's own force:
$ ls -l packages.i
total 20K
-rw-r--r-- 1 gitlab-runner gitlab-runner 1,4K nov 23 19:20 packages.
-rw-rw-r-- 1 gitlab-runner gitlab-runner 102 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 102 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 705 nov 23 19:20 packages.
-rw-r--r-- 1 gitlab-runner gitlab-runner 316 nov 23 19:20 packages.
please add support for overriding, because i can't chmod g+rw after each run, because if the file was created by some other user there is not permitted to change permissions of other user files without root privilege
i'd say respect umask, but some --filemode=0664 option is fine as well.
Changed in poldek: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Marcin Banasiak (megabajt) |
Fixed in https:/ /git.launchpad. net/poldek/ commit/ ?id=550edc39751 66fd261ae712e35 17d1b903c0748b