diff options
Diffstat (limited to 'src/logic/slbt_exec_uninstall.c')
-rw-r--r-- | src/logic/slbt_exec_uninstall.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/logic/slbt_exec_uninstall.c b/src/logic/slbt_exec_uninstall.c index 77af0ef..182bc8d 100644 --- a/src/logic/slbt_exec_uninstall.c +++ b/src/logic/slbt_exec_uninstall.c @@ -151,9 +151,10 @@ static int slbt_exec_uninstall_entry( char ** parg, uint32_t flags) { - char path [PATH_MAX]; - char lpath[PATH_MAX]; - char * dot; + const char * dsosuffix; + char * dot; + char path [PATH_MAX]; + char lpath[PATH_MAX]; if ((size_t)snprintf(path,PATH_MAX,"%s", entry->arg) >= PATH_MAX-8) @@ -178,14 +179,17 @@ static int slbt_exec_uninstall_entry( if (slbt_exec_uninstall_fs_entry(dctx,ectx,parg,path,flags)) return SLBT_NESTED_ERROR(dctx); + /* dsosuffix */ + dsosuffix = dctx->cctx->settings.dsosuffix; + /* .so symlink? */ - strcpy(dot,".so"); + strcpy(dot,dsosuffix); if (!(slbt_readlink(path,lpath,sizeof(lpath)))) if (slbt_exec_uninstall_versioned_library( dctx,ectx,parg, path,lpath, - ".so",flags)) + dsosuffix,flags)) return SLBT_NESTED_ERROR(dctx); /* .lib.a symlink? */ @@ -209,7 +213,7 @@ static int slbt_exec_uninstall_entry( return SLBT_NESTED_ERROR(dctx); /* remove .so library as needed */ - strcpy(dot,".so"); + strcpy(dot,dsosuffix); if (slbt_exec_uninstall_fs_entry(dctx,ectx,parg,path,flags)) return SLBT_NESTED_ERROR(dctx); |