rrthomas / lrexlib

A Lua (5.1 and later) binding of various regex library APIs (POSIX, PCRE, PCRE2, GNU, Oniguruma and TRE)
Other
161 stars 29 forks source link

lrexlib-posix doc/ is not readable by everyone #40

Closed Nomarian closed 1 year ago

Nomarian commented 3 years ago

The files are everything residing in doc/ which happens to not have reading permission for everyone, just user: rw and group: r, but not other

tst2005 commented 3 years ago

Hello, Git does not remind permissions. It is an issue on our side. You just have to change your umask.

For example:

$ umask 077
$ cd /tmp
$ git clone https://github.com/rrthomas/lrexlib
$ ls -logd lrexlib/doc lrexlib/doc/*
drwx------ 2  4096 Aug 25 17:24 lrexlib/doc
-rw------- 1  5524 Aug 25 17:24 lrexlib/doc/html4css1.css
-rw------- 1  1249 Aug 25 17:24 lrexlib/doc/license.html
-rw------- 1   452 Aug 25 17:24 lrexlib/doc/lrexlib.css
-rw------- 1 45068 Aug 25 17:24 lrexlib/doc/manual.txt
-rw------- 1    85 Aug 25 17:24 lrexlib/doc/SciTE.properties

You probably want this:

$ umask 022
$ cd /tmp
$ git clone https://github.com/rrthomas/lrexlib
$ ls -ld lrexlib/doc lrexlib/doc/*
drwxr-xr-x 2  4096 Aug 25 17:25 lrexlib/doc
-rw-r--r-- 1  5524 Aug 25 17:25 lrexlib/doc/html4css1.css
-rw-r--r-- 1  1249 Aug 25 17:25 lrexlib/doc/license.html
-rw-r--r-- 1   452 Aug 25 17:25 lrexlib/doc/lrexlib.css
-rw-r--r-- 1 45068 Aug 25 17:25 lrexlib/doc/manual.txt
-rw-r--r-- 1    85 Aug 25 17:25 lrexlib/doc/SciTE.properties
Nomarian commented 3 years ago

ah, did not know about umask, very well, thanks

FWIW I thought it was an issue because this only happens on lrexlib-posix, lrexlib-gnu has the correct permissions.

rrthomas commented 1 year ago

Closing as not a bug.