[FFmpeg-devel] [PATCH 1/2] lavf/libssh: fix file mode
    Lukasz Marek 
    lukasz.m.luki at gmail.com
       
    Sat Dec 28 19:37:03 CET 2013
    
    
  
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
---
 libavformat/libssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/libssh.c b/libavformat/libssh.c
index 4a9b867..611fc24 100644
--- a/libavformat/libssh.c
+++ b/libavformat/libssh.c
@@ -121,7 +121,7 @@ static int libssh_open(URLContext *h, const char *url, int flags)
         access = O_RDONLY;
     }
 
-    if (!(s->file = sftp_open(s->sftp, path, access, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH))) {
+    if (!(s->file = sftp_open(s->sftp, path, access, 0666))) {
         av_log(h, AV_LOG_ERROR, "Error opening sftp file: %s\n", ssh_get_error(s->session));
         ret = AVERROR(EIO);
         goto fail;
-- 
1.8.3.2
    
    
More information about the ffmpeg-devel
mailing list