orangefs: Add octal zero prefix
authorArtur Świgoń <a.swigon@partner.samsung.com>
Tue, 13 Aug 2019 10:53:37 +0000 (12:53 +0200)
committerMike Marshall <hubcap@omnibond.com>
Thu, 12 Sep 2019 18:17:16 +0000 (14:17 -0400)
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>
fs/orangefs/namei.c

index 1dd710e..3e7cf3d 100644 (file)
@@ -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__);