Merge branch 'symlink' into 'master'

core-util: allow symbolic links for user dirs

Closes #624

See merge request pulseaudio/pulseaudio!656
This commit is contained in:
Jason Nader 2025-10-05 02:49:42 +00:00
commit 6cacd14365

View file

@ -310,9 +310,6 @@ again:
#endif
#ifdef O_NOCTTY
O_NOCTTY|
#endif
#ifdef O_NOFOLLOW
O_NOFOLLOW|
#endif
O_RDONLY)) < 0)
goto fail;
@ -345,7 +342,7 @@ again:
#endif
#ifdef HAVE_FCHMOD
if ((st.st_mode & 07777) != m && fchmod(fd, m) < 0) {
if ((st.st_gid != gid && (st.st_mode & 070) != 0) || (st.st_mode & 07777) != m && fchmod(fd, m) < 0) {
pa_assert_se(pa_close(fd) >= 0);
goto fail;
};