restricted snarf_user and how we snarf links
authorFred T. Hamster <fred@gruntose.com>
Tue, 1 Oct 2024 00:11:50 +0000 (20:11 -0400)
committerFred T. Hamster <fred@gruntose.com>
Tue, 1 Oct 2024 00:11:50 +0000 (20:11 -0400)
we don't want recursive links being dereferenced, which made last version barf on .local/.../steam due to recursive links in there.
also, stopped backing up .local for the time being anyhow, since it's where steam lives and backing that up means backing up crazy amounts of gigabytes of game apps.

nucleus/library/tests_crypto/makefile.crypto_breaker [new file with mode: 0644]
scripts/archival/shared_snarfer.pl
scripts/archival/snarf_user.pl

diff --git a/nucleus/library/tests_crypto/makefile.crypto_breaker b/nucleus/library/tests_crypto/makefile.crypto_breaker
new file mode 100644 (file)
index 0000000..d7d3f49
--- /dev/null
@@ -0,0 +1,12 @@
+include cpp/variables.def
+
+PROJECT = tests_crypto
+TYPE = test
+TARGETS = test_blowfish_crypto.exe test_rsa_crypto.exe 
+LOCAL_LIBS_USED = unit_test crypto application processes loggers configuration textual timely \
+  filesystem structures basis 
+USE_SSL = t
+RUN_TARGETS = $(ACTUAL_TARGETS)
+
+include cpp/rules.def
+
index 7b2b7ecdcc0d03eda2d0ef9f2bcd48fa9565e9cf..cfbe2ae0fe582bba59747ce41b84d13849651e32 100644 (file)
@@ -189,8 +189,8 @@ sub snarfer {
   }
 
   local($outcome) = 0xff & system $tar_tool, 
-#hmmm: trying to dereference symbolic links and stop missing stuff.
-"-h",
+#hmmm: trying to tame symbolic links; just recording them as links.
+      "--keep-directory-symlink",
       "-rf", &canonicalize($target_file), @excludes,
       "--files-from=" . &canonicalize($temp_file);
   if ($outcome) {
index 202fba000259f6e053f6bb183b8a73ab197509a5..87f448920adc3c7b19b5c93ff05b7ca06961cfb7 100644 (file)
@@ -39,8 +39,12 @@ local($snarf_file) = &snarf_name($snarf_file_base, $number);
 
 # backup all the config info for kde.
 &backup_hierarchy($snarf_file_base, $number, "$root", ".kde");
-# and get the config for gnome.
-&backup_hierarchy($snarf_file_base, $number, "$root", ".local");
+
+#hmmm: these get too much stuff, including all the steam binaries.
+#hmmm: make it more specific.
+#ARGH # and get the config for gnome.
+#ARGH &backup_hierarchy($snarf_file_base, $number, "$root", ".local");
+
 &backup_hierarchy($snarf_file_base, $number, "$root", ".gnome*");
 # and assorted config things for various apps.
 &backup_hierarchy($snarf_file_base, $number, "$root", ".config/syncthing");