mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
when storing recording data in file, create file with proper access rights
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@693 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
4a8d318549
commit
06bd27b043
1 changed files with 1 additions and 1 deletions
|
|
@ -540,7 +540,7 @@ int main(int argc, char *argv[]) {
|
|||
if (optind+1 == argc) {
|
||||
int fd;
|
||||
|
||||
if ((fd = open(argv[optind], mode == PLAYBACK ? O_RDONLY : O_WRONLY|O_TRUNC|O_CREAT)) < 0) {
|
||||
if ((fd = open(argv[optind], mode == PLAYBACK ? O_RDONLY : O_WRONLY|O_TRUNC|O_CREAT, 0666)) < 0) {
|
||||
fprintf(stderr, "open(): %s\n", strerror(errno));
|
||||
goto quit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue