aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-28 20:09:01 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-28 20:09:01 (GMT)
commit5c38b23cd7b04b06a19a060397ab79335d4a3fb5 (patch)
tree3714373615ee9f7132ed89100240da29d8682ed6
parentdf0cbd1b12b80310e62b64f799860f8f02ead4cf (diff)
downloadfusearchive-5c38b23cd7b04b06a19a060397ab79335d4a3fb5.zip
fusearchive-5c38b23cd7b04b06a19a060397ab79335d4a3fb5.tar.gz
fusearchive-5c38b23cd7b04b06a19a060397ab79335d4a3fb5.tar.bz2
Do create new fh if needed
-rwxr-xr-xfusearchive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 8998601..aad8c0f 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -504,7 +504,7 @@ class FuseArchive(Fuse):
# files works (in the create a read-only file for writing case)
src = "./tree" + path
logging.debug( "Saving fh for " + src )
- nflags = os.O_RDWR
+ nflags = os.O_RDWR | os.O_APPEND | os.O_CREAT
self.file = os.fdopen( os.open( src, nflags, *mode ),
flag2mode( nflags ) )