mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 07:13:14 +08:00
Fix priv_check methods to return passing value.
This commit is contained in:
parent
aa8c37d59c
commit
fbdd6b6ed0
@ -509,8 +509,9 @@ struct ucred;
|
|||||||
int priv_check(struct thread *td, int priv);
|
int priv_check(struct thread *td, int priv);
|
||||||
int priv_check_cred(struct ucred *cred, int priv, int flags);
|
int priv_check_cred(struct ucred *cred, int priv, int flags);
|
||||||
#else /* __rtems__ */
|
#else /* __rtems__ */
|
||||||
#define priv_check(td, priv) 1
|
/* rtems assumes all privileges for now. */
|
||||||
#define priv_check_cred(cred, priv, flags) 1
|
#define priv_check(td, priv) 0
|
||||||
|
#define priv_check_cred(cred, priv, flags) 0
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user