summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-19 05:55:00 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-19 05:55:00 +0000
commit71efe489bc3f5cfdde8a227eb6735294e6479f87 (patch)
tree6e1196498b0beb8792d9857f589164940d780ff9
parentbfd3ffac7c5c88585c543322f5c8c091bcf396ae (diff)
downloadrdiff-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
-rw-r--r--rdiff-backup/rdiff_backup/Security.py3
-rwxr-xr-xrdiff-backup/rdiff_backup/compilec.py6
-rw-r--r--rdiff-backup/src/Security.py3
-rwxr-xr-xrdiff-backup/src/compilec.py6
4 files changed, 14 insertions, 4 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")
diff --git a/rdiff-backup/src/Security.py b/rdiff-backup/src/Security.py
index e4630d7..49857ab 100644
--- a/rdiff-backup/src/Security.py
+++ b/rdiff-backup/src/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/src/compilec.py b/rdiff-backup/src/compilec.py
index 275f57a..696d351 100755
--- a/rdiff-backup/src/compilec.py
+++ b/rdiff-backup/src/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")