summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/namei.c
diff options
context:
space:
mode:
authorArtur Świgoń <a.swigon@partner.samsung.com>2019-08-13 12:53:37 +0200
committerMike Marshall <hubcap@omnibond.com>2019-09-12 20:17:16 +0200
commitc42293a951bdf315242dcf4cc673bf111c7632d8 (patch)
tree86b6425c9c595f2c40df778aa950716cc888b7af /fs/orangefs/namei.c
parentLinux 5.3-rc8 (diff)
downloadlinux-c42293a951bdf315242dcf4cc673bf111c7632d8.tar.xz
linux-c42293a951bdf315242dcf4cc673bf111c7632d8.zip
orangefs: Add octal zero prefix
This patch adds a missing zero to mode 755 specification required to express it in octal numeral system. Reported-by: Łukasz Wrochna <l.wrochna@samsung.com> Signed-off-by: Artur Świgoń <a.swigon@partner.samsung.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/namei.c')
-rw-r--r--fs/orangefs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index 1dd710e5f376..3e7cf3d0a494 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -224,7 +224,7 @@ static int orangefs_symlink(struct inode *dir,
struct orangefs_object_kref ref;
struct inode *inode;
struct iattr iattr;
- int mode = 755;
+ int mode = 0755;
int ret;
gossip_debug(GOSSIP_NAME_DEBUG, "%s: called\n", __func__);