aboutsummaryrefslogtreecommitdiff
path: root/fs/orangefs
diff options
context:
space:
mode:
authorArtur Świgoń2019-08-13 12:53:37 +0200
committerMike Marshall2019-09-12 14:17:16 -0400
commitc42293a951bdf315242dcf4cc673bf111c7632d8 (patch)
tree86b6425c9c595f2c40df778aa950716cc888b7af /fs/orangefs
parentf74c2bb98776e2de508f4d607cd519873065118e (diff)
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')
-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__);