[CRIU] [crtools-bot for Cyrill Gorcunov ] parasite: Make sure no dots in names generated

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 08:18:09 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 0fe72423c1b1f8d9c7a8bc6e6dfdbc6b72c912ea
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Mon Feb 13 12:09:22 2012 +0400

    parasite: Make sure no dots in names generated
    
    Some names may be "dot" mangled.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
 gen-offsets.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gen-offsets.sh b/gen-offsets.sh
index 0948aed..70158fb 100644
--- a/gen-offsets.sh
+++ b/gen-offsets.sh
@@ -12,7 +12,7 @@ echo "/* Autogenerated file, don't edit */"
 echo "#ifndef $name_ifndef"
 echo "#define $name_ifndef"
 echo ""
-nm $name_objname | grep ' [Tt] ' | awk "$awk_cmd"
+nm $name_objname | grep ' [Tt] ' | sed -e 's/\./_/g' | awk "$awk_cmd"
 echo ""
 echo "static char $name_blob[] = {"
 hexdump -v -e '"\t"' -e '8/1 "0x%02x, "' -e '"\n"' $name_bin


More information about the CRIU mailing list