]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/terminal-util.h
terminal-util: reset access mode in vt_restore(), too
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Apr 2019 17:26:14 +0000 (19:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 May 2019 13:07:55 +0000 (15:07 +0200)
commit1802d5f2cf24e43a81502fbeaa839d9b9eb7e361
tree3fc8e0a65020d562b920591f3bfce14437d57093
parent4b3b5bc71b791a67d991389d8f59ab891b051b86
terminal-util: reset access mode in vt_restore(), too

Only changing ownership back to root is not enough we also need to
change the access mode, otherwise the user might have set 666 first, and
thus allow everyone access before and after the chown().
src/basic/terminal-util.c
src/basic/terminal-util.h
src/core/execute.c