"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "portal/flatpak-portal-app-info.c" between
flatpak-1.15.1.tar.xz and flatpak-1.15.2.tar.xz

About: Flatpak is a Linux application sandboxing and distribution framework. Pre-release.

flatpak-portal-app-info.c  (flatpak-1.15.1.tar.xz):flatpak-portal-app-info.c  (flatpak-1.15.2.tar.xz)
skipping to change at line 88 skipping to change at line 88
g_autoptr(GMappedFile) mapped = NULL; g_autoptr(GMappedFile) mapped = NULL;
g_autoptr(GKeyFile) metadata = NULL; g_autoptr(GKeyFile) metadata = NULL;
root_path = g_strdup_printf ("/proc/%u/root", pid); root_path = g_strdup_printf ("/proc/%u/root", pid);
root_fd = openat (AT_FDCWD, root_path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O _CLOEXEC | O_NOCTTY); root_fd = openat (AT_FDCWD, root_path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O _CLOEXEC | O_NOCTTY);
if (root_fd == -1) if (root_fd == -1)
{ {
/* Not able to open the root dir shouldn't happen. Probably the app died a nd /* Not able to open the root dir shouldn't happen. Probably the app died a nd
* we're failing due to /proc/$pid not existing. In that case fail instead * we're failing due to /proc/$pid not existing. In that case fail instead
of treating this as privileged. */ of treating this as privileged. */
g_debug ("Unable to open %s", root_path); g_info ("Unable to open %s", root_path);
return NULL; return NULL;
} }
metadata = g_key_file_new (); metadata = g_key_file_new ();
info_fd = openat (root_fd, ".flatpak-info", O_RDONLY | O_CLOEXEC | O_NOCTTY); info_fd = openat (root_fd, ".flatpak-info", O_RDONLY | O_CLOEXEC | O_NOCTTY);
if (info_fd == -1) if (info_fd == -1)
{ {
if (errno == ENOENT) if (errno == ENOENT)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)