From: Eric Fahlgren Date: Wed, 27 May 2026 15:47:58 +0000 (-0700) Subject: luci-app-attendedsysupgrade: filemode should be octal X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3fe51f362d1592e6693ba68c99f89070883c9e02;p=openwrt-luci.git luci-app-attendedsysupgrade: filemode should be octal Fix decimal "600" file mode that should have octal prefix. Link: #8650 Signed-off-by: Eric Fahlgren --- diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index 5cce09db70..07c8869210 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -459,7 +459,7 @@ return view.extend({ let form_data = new FormData(); form_data.append('sessionid', rpc.getSessionID()); form_data.append('filename', '/tmp/firmware.bin'); - form_data.append('filemode', 600); + form_data.append('filemode', 0o600); form_data.append('filedata', response.blob()); ui.showModal(_('Uploading...'), [