From: Wenkai Lin linwenkai6@hisilicon.com
The shmflag should be 0600 in octal, not 600 in decimal.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- uadk_tool/dfx/uadk_dfx.c | 2 +- wd_util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/uadk_tool/dfx/uadk_dfx.c b/uadk_tool/dfx/uadk_dfx.c index 796135a..9c54b7b 100644 --- a/uadk_tool/dfx/uadk_dfx.c +++ b/uadk_tool/dfx/uadk_dfx.c @@ -16,7 +16,7 @@
#define uadk_build_date() printf("built on: %s %s\n", __DATE__, __TIME__) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#define PRIVILEGE_FLAG 666 +#define PRIVILEGE_FLAG 0666
struct uadk_env_var { const char *module; diff --git a/wd_util.c b/wd_util.c index fb58167..2635dc3 100644 --- a/wd_util.c +++ b/wd_util.c @@ -19,7 +19,7 @@ #define WD_BALANCE_THRHD 1280 #define WD_RECV_MAX_CNT_SLEEP 60000000 #define WD_RECV_MAX_CNT_NOSLEEP 200000000 -#define PRIVILEGE_FLAG 600 +#define PRIVILEGE_FLAG 0600 #define MIN(a, b) ((a) > (b) ? (b) : (a)) #define MAX(a, b) ((a) > (b) ? (a) : (b))