1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From 1903b9e5ddae07c13c56f6b7e85a0629450d2b6d Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Mon, 27 Dec 2021 23:37:23 -0800
Subject: [PATCH 08/14] serenity: Disable lchown() calls in stress-chown
stressor for SerenityOS
Serenity doesn't have an lchown implementation, so compile it out.
---
stress-chown.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/stress-chown.c b/stress-chown.c
index 5d53806..caefd90 100644
--- a/stress-chown.c
+++ b/stress-chown.c
@@ -221,6 +221,8 @@ static int stress_chown(const stress_args_t *args)
pr_fail("%s: chown %s failed, errno=%d (%s)\n",
args->name, filename, errno, strerror(errno));
}
+
+#ifndef __serenity__
ret = do_chown(lchown, filename, cap_chown, uid, gid);
if (ret < 0) {
if ((ret == -ENOENT) || (ret == -ENOTDIR)) {
@@ -235,6 +237,7 @@ static int stress_chown(const stress_args_t *args)
pr_fail("%s: chown %s failed, errno=%d (%s)\n",
args->name, filename, errno, strerror(errno));
}
+#endif
inc_counter(args);
} while (keep_stressing(args));
--
2.32.0
|