]> git.sesse.net Git - vlc/commitdiff
* modules/access_output/file.c: make the output file writeable by the owner.
authorGildas Bazin <gbazin@videolan.org>
Sat, 21 Jun 2003 14:24:30 +0000 (14:24 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sat, 21 Jun 2003 14:24:30 +0000 (14:24 +0000)
modules/access_output/file.c

index 65afa46438258c2bc9b6ff8a04dd6dffc1ef5a1d..19fe63fa70dd217990ee9e67cb8549c7ed394d00 100644 (file)
@@ -2,7 +2,7 @@
  * file.c
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: file.c,v 1.7 2003/06/12 15:56:27 gbazin Exp $
+ * $Id: file.c,v 1.8 2003/06/21 14:24:30 gbazin Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *          Eric Petit <titer@videolan.org>
@@ -100,7 +100,7 @@ static int Open( vlc_object_t *p_this )
     }
     else if( ( p_access->p_sys->i_handle =
                open( p_access->psz_name, O_WRONLY|O_CREAT|O_TRUNC,
-                     S_IREAD | S_IRGRP | S_IROTH ) ) == -1 )
+                     S_IWRITE | S_IREAD | S_IRGRP | S_IROTH ) ) == -1 )
     {
         msg_Err( p_access, "cannot open `%s'", p_access->psz_name );
         free( p_access->p_sys );