summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Świgoń <a.swigon@partner.samsung.com>2019-08-13 13:53:37 +0300
committerMike Marshall <hubcap@omnibond.com>2019-09-12 21:17:16 +0300
commitc42293a951bdf315242dcf4cc673bf111c7632d8 (patch)
tree86b6425c9c595f2c40df778aa950716cc888b7af
parentf74c2bb98776e2de508f4d607cd519873065118e (diff)
downloadlinux-c42293a951bdf315242dcf4cc673bf111c7632d8.tar.xz
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>
-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__);