mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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:
commit
6cacd14365
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue