diff options
Diffstat (limited to 'cmds-send.c')
-rw-r--r-- | cmds-send.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds-send.c b/cmds-send.c index fcde74cc..9bb4206a 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -84,6 +84,13 @@ int find_mount_root(const char *path, char **mount_root) } fclose(mnttab); + if (!longest_match) { + fprintf(stderr, + "ERROR: Failed to find mount root for path %s.\n", + path); + return -ENOENT; + } + *mount_root = realpath(longest_match, NULL); free(longest_match); |