diff options
author | netblue30 <netblue30@yahoo.com> | 2016-09-15 08:19:29 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-09-15 08:19:29 -0400 |
commit | cb42fa600df2f0843421620e3597ba71b1117828 (patch) | |
tree | 63a960dc0c310b1adeb1b24032604d944a7a0be9 /mkuid.sh | |
parent | Merge pull request #776 from manevich/x11 (diff) | |
download | firejail-cb42fa600df2f0843421620e3597ba71b1117828.tar.gz firejail-cb42fa600df2f0843421620e3597ba71b1117828.tar.zst firejail-cb42fa600df2f0843421620e3597ba71b1117828.zip |
fixed /etc/login.def reading on Mageia systems
Diffstat (limited to 'mkuid.sh')
-rwxr-xr-x | mkuid.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ echo "extracting UID_MIN and GID_MIN" | |||
4 | echo "#ifndef FIREJAIL_UIDS_H" > uids.h | 4 | echo "#ifndef FIREJAIL_UIDS_H" > uids.h |
5 | echo "#define FIREJAIL_UIDS_H" >> uids.h | 5 | echo "#define FIREJAIL_UIDS_H" >> uids.h |
6 | 6 | ||
7 | if [ -f /etc/login.defs ] | 7 | if [ -r /etc/login.defs ] |
8 | then | 8 | then |
9 | echo "// using values extracted from /etc/login.defs" >> uids.h | 9 | echo "// using values extracted from /etc/login.defs" >> uids.h |
10 | UID_MIN=`awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs` | 10 | UID_MIN=`awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs` |