Ожидаемый сценарий:
$ ls -lh /lib/libcurl.so*
lrwxrwxrwx 1 root root 16 Mar 26 2013 /lib/libcurl.so -> libcurl.so.4.0.1
lrwxrwxrwx 1 root root 16 Mar 26 2013 /lib/libcurl.so.4 -> libcurl.so.4.0.1
-rwxr-xr-x 1 root root 1.5M Mar 26 2013 /lib/libcurl.so.4.0.1
$ copy_with_links /lib/libcurl.so.4 /tmp/libcurl/
$ ls -lh /tmp/libcurl/
lrwxrwxrwx 1 root root 16 Mar 18 2014 /tmp/libcurl/libcurl.so -> libcurl.so.4.0.1
lrwxrwxrwx 1 root root 16 Mar 18 2014 /tmp/libcurl/libcurl.so.4 -> libcurl.so.4.0.1
-rwxr-xr-x 1 root root 1.5M Mar 18 2013 /tmp/libcurl/libcurl.so.4.0.1