9a82c44e38
Named-profile export staged its copy with an ignore callable that only excluded credential files, so any Unix socket in the profile (e.g. a stale agent-browser control socket under home/.agent-browser/) made shutil.copytree collect "[Errno 6] No such device or address" and raise shutil.Error, failing the entire export. The default-profile export already excluded *.sock by suffix, but a socket without that suffix (or a FIFO, or a device node) failed it the same way. Extract the universal exclusions into _non_exportable_entries(), which keeps the __pycache__/*.sock/*.tmp name rules and additionally drops any entry that is not a regular file, directory, or symlink (os.lstat mode check), and use it in both the default and named export branches.