[polypaudio-commits] r693 - /trunk/src/utils/pacat.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Apr 12 16:55:22 PDT 2006


Author: lennart
Date: Thu Apr 13 01:55:21 2006
New Revision: 693

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=693&root=polypaudio&view=rev
Log:
when storing recording data in file, create file with proper access rights

Modified:
    trunk/src/utils/pacat.c

Modified: trunk/src/utils/pacat.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/pacat.c?rev=693&root=polypaudio&r1=692&r2=693&view=diff
==============================================================================
--- trunk/src/utils/pacat.c (original)
+++ trunk/src/utils/pacat.c Thu Apr 13 01:55:21 2006
@@ -540,7 +540,7 @@
         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;
             }




More information about the pulseaudio-commits mailing list