diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-07-19 05:55:00 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-07-19 05:55:00 +0000 |
commit | 71efe489bc3f5cfdde8a227eb6735294e6479f87 (patch) | |
tree | 6e1196498b0beb8792d9857f589164940d780ff9 /rdiff-backup/rdiff_backup | |
parent | bfd3ffac7c5c88585c543322f5c8c091bcf396ae (diff) | |
download | rdiff-backup-71efe489bc3f5cfdde8a227eb6735294e6479f87.tar.gz |
compilec compiles librsync also, --print-statistics compatible with
Security.py now.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@164 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r-- | rdiff-backup/rdiff_backup/Security.py | 3 | ||||
-rwxr-xr-x | rdiff-backup/rdiff_backup/compilec.py | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/Security.py b/rdiff-backup/rdiff_backup/Security.py index e4630d7..49857ab 100644 --- a/rdiff-backup/rdiff_backup/Security.py +++ b/rdiff-backup/rdiff_backup/Security.py @@ -101,7 +101,8 @@ def set_allowed_requests(sec_level): "Log.open_logfile_allconn", "Log.close_logfile_allconn", "SetConnections.add_redirected_conn", - "RedirectedRun"] + "RedirectedRun", + "sys.stdout.write"] if sec_level == "minimal": pass elif sec_level == "read-only" or sec_level == "update-only": allowed_requests.extend(["C.make_file_dict", diff --git a/rdiff-backup/rdiff_backup/compilec.py b/rdiff-backup/rdiff_backup/compilec.py index 275f57a..696d351 100755 --- a/rdiff-backup/rdiff_backup/compilec.py +++ b/rdiff-backup/rdiff_backup/compilec.py @@ -9,7 +9,11 @@ sys.argv.append("build") setup(name="CModule", version="0.9.0", description="rdiff-backup's C component", - ext_modules=[Extension("C", ["cmodule.c"])]) + ext_modules=[Extension("C", ["cmodule.c"]), + Extension("_librsync", + ["_librsyncmodule.c"], + libraries=["rsync"])]) assert not os.system("mv build/lib.linux-i686-2.2/C.so .") +assert not os.system("mv build/lib.linux-i686-2.2/_librsync.so .") assert not os.system("rm -rf build") |