diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:01 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:01 +0000 |
commit | 0a8e3465cb644e380ab0fc6d66f6d1f17363b34e (patch) | |
tree | 7bc1f7814b793e616fb516d130e26bae04f848cf /apt-pkg/contrib/fileutl.cc | |
parent | e1b74f61dfb6980d643cb7c666c761ff3bda2f1e (diff) |
Sync
Author: jgg
Date: 1998-10-02 04:39:42 GMT
Sync
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index d18f7853e..60b9f8b75 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: fileutl.cc,v 1.7 1998/08/26 04:52:26 jgg Exp $ +// $Id: fileutl.cc,v 1.8 1998/10/02 04:39:50 jgg Exp $ /* ###################################################################### File Utilities @@ -140,6 +140,10 @@ FileFd::FileFd(string FileName,OpenMode Mode, unsigned long Perms) case WriteExists: iFd = open(FileName.c_str(),O_RDWR); break; + + case WriteAny: + iFd = open(FileName.c_str(),O_RDWR | O_CREAT,Perms); + break; // Dont use this in public directories case LockEmpty: |