diff options
author | David Sterba <dsterba@suse.cz> | 2015-06-12 16:09:33 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-06-12 16:44:48 +0200 |
commit | 6bfa3cae0590a1ed6a40b20ae48389a89b366fb2 (patch) | |
tree | b35c6a9ff714241282c83dcd9cdb066b0b0c7e11 /utils.h | |
parent | 230ab9376c721a9349ed6997e404afd059ac9247 (diff) |
btrfs-progs: add helper for copying paths
Check the source path length and do the copy.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -135,6 +135,7 @@ int get_mountpt(char *dev, char *mntpt, size_t size); u64 parse_size(char *s); u64 parse_qgroupid(const char *p); u64 arg_strtou64(const char *str); +int arg_copy_path(char *dest, const char *src, int destlen); int open_file_or_dir(const char *fname, DIR **dirstream); int open_file_or_dir3(const char *fname, DIR **dirstream, int open_flags); void close_file_or_dir(int fd, DIR *dirstream); |