Closed dins2k2 closed 2 years ago
You don't want it to touch any symlink, they should all be ignored. All files should be scanned. Then any symlink to these files will be ok,as there is usually multiple symlinks to one file
Seems related to #26
Currently, the scan does follow symlinks (though it arguably should not). Do the symlinks point to valid files?
It SHOULD NOT use synlinks, as the backup will not be the true file and makes rollback hard. There is also issues with permission of the backup file, so on restore it can break access based on the systems security level with its umask setting
Currently, the scan does follow symlinks (though it arguably should not). Do the symlinks point to valid files?
I just had a quick check, seems the symlinks pointing to the non-existing jars.
I think this issue can be closed. Thanks for all your help!
Observation from a test run of log4j patch script on HDP:
Looks like if a OS directory has symlinks to jars, its not getting followed and scanned for JndiLookup.class files.
grep: /usr/hdp/current/phoenix-server/lib/hbase-testing-util.jar: No such file or directory
Test run Log:
Symlink: [user@server]$ ll /usr/hdp/current/phoenix-client/lib/hbase-testing-util.jar lrwxrwxrwx 1 root root 52 May 22 2018 /usr/hdp/current/phoenix-client/lib/hbase-testing-util.jar -> /usr/hdp/2.6.4.0-91/hbase/lib/hbase-testing-util.jar
Any fix for this? Or am I missing something?