chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
terminal: remove dead code checking O_WRONLY
[elogind.git]
/
src
/
shared
/
clean-ipc.c
diff --git
a/src/shared/clean-ipc.c
b/src/shared/clean-ipc.c
index ddd42cc2b2b742250fbda1cd92e3615e5721303b..cb1722614e7cd5dc21f938bafa2b2d6629b4f9b1 100644
(file)
--- a/
src/shared/clean-ipc.c
+++ b/
src/shared/clean-ipc.c
@@
-332,8
+332,8
@@
fail:
int clean_ipc(uid_t uid) {
int ret = 0, r;
- /* Refuse to clean IPC of the root
user
*/
- if (uid
== 0
)
+ /* Refuse to clean IPC of the root
and system users
*/
+ if (uid
<= SYSTEM_UID_MAX
)
return 0;
r = clean_sysvipc_shm(uid);