diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-06 09:56:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-08-06 09:56:08 +0200 |
commit | bc22ed879c05836e0f1d5e40f0f4a052d1f9d511 (patch) | |
tree | 43cc2c754bc9a18913b4bbb37a440446762cfa3b /videodir.c | |
parent | 068e17303c93dcca4521a8f9c09eb7b8a4dc5104 (diff) | |
download | vdr-bc22ed879c05836e0f1d5e40f0f4a052d1f9d511.tar.gz vdr-bc22ed879c05836e0f1d5e40f0f4a052d1f9d511.tar.bz2 |
Files and directories are now created with rights according to the shell's umask settings
Diffstat (limited to 'videodir.c')
-rw-r--r-- | videodir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: videodir.c 1.11 2004/12/26 11:52:12 kls Exp $ + * $Id: videodir.c 1.12 2005/08/06 09:53:21 kls Exp $ */ #include "videodir.h" @@ -137,7 +137,7 @@ int OpenVideoFile(const char *FileName, int Flags) } } } - int Result = open(ActualFileName, Flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + int Result = open(ActualFileName, Flags, DEFFILEMODE); if (ActualFileName != FileName) free((char *)ActualFileName); return Result; |