ssh-proxy: Support ssh machine/xxx for nspawn containers
This commit is contained in:
committed by
Daan De Meyer
parent
3b51529cbf
commit
e6be5fb720
@@ -157,6 +157,11 @@ int stat_verify_socket(const struct stat *st) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int is_socket(const char *path) {
|
||||
assert(!isempty(path));
|
||||
return verify_stat_at(AT_FDCWD, path, /* follow= */ true, stat_verify_socket, /* verify= */ false);
|
||||
}
|
||||
|
||||
int stat_verify_linked(const struct stat *st) {
|
||||
assert(st);
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ int fd_verify_symlink(int fd);
|
||||
int is_symlink(const char *path);
|
||||
|
||||
int stat_verify_socket(const struct stat *st);
|
||||
int is_socket(const char *path);
|
||||
|
||||
int stat_verify_linked(const struct stat *st);
|
||||
int fd_verify_linked(int fd);
|
||||
|
||||
Reference in New Issue
Block a user