Sign in
third-party-mirror
/
systemd
/
refs/heads/master
/
.
/
coccinelle
/
empty-or-root.cocci
blob: d36f0c8b1bf6352a3cf897da141e3cffa06eeb2b [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression s
;
@@
-
(
isempty
(
s
)
||
path_equal
(
s
,
"/"
))
+
empty_or_root
(
s
)
@@
expression s
;
@@
-
(!
isempty
(
s
)
&&
!
path_equal
(
s
,
"/"
))
+
!
empty_or_root
(
s
)