Skip to content

Commit

Permalink
Cherry-pick 274137@main (51e2f83). <bug>
Browse files Browse the repository at this point in the history
    Unreviewed, [GLib] Fix incorrect format string

    %lu is incorrect on some platforms. PRIu64 is defined for this.

    * Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
    (WebKit::bubblewrapSpawn):

    Canonical link: https://commits.webkit.org/274137@main
  • Loading branch information
TingPing authored and aperezdc committed Feb 6, 2024
1 parent 3d53735 commit 530aebc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ GRefPtr<GSubprocess> bubblewrapSpawn(GSubprocessLauncher* launcher, const Proces
// full permissions unless it can identify you as a snap or flatpak.
// The easiest method is for us to pretend to be a flatpak and if that
// fails just blocking portals entirely as it just becomes a sandbox escape.
GUniquePtr<char> instanceID(g_strdup_printf("webkit-%d-%lu", getpid(), launchOptions.processIdentifier.toUInt64()));
GUniquePtr<char> instanceID(g_strdup_printf("webkit-%d-%" PRIu64, getpid(), launchOptions.processIdentifier.toUInt64()));
int flatpakInfoFd = createFlatpakInfo(instanceID.get());
if (flatpakInfoFd != -1) {
g_subprocess_launcher_take_fd(launcher, flatpakInfoFd, flatpakInfoFd);
Expand Down

0 comments on commit 530aebc

Please sign in to comment.