diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-03-13 14:08:00 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-03-13 14:10:39 +0100 |
commit | 15411c0cb1192799b37ec8f25d6f30e8d7292fc6 (patch) | |
tree | 003adfa8f694890078b5fb6d901e420c9a966ece /src/shared/copy.c | |
parent | 32a568fb90bf0a22a3007fa670305403a5d0bb72 (diff) |
tree-wide: there is no ENOTSUP on linux
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
Diffstat (limited to 'src/shared/copy.c')
-rw-r--r-- | src/shared/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c index f9ec6733be..9e4c3b0f72 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -285,7 +285,7 @@ static int fd_copy_directory( else if (S_ISBLK(buf.st_mode) || S_ISCHR(buf.st_mode)) q = fd_copy_node(dirfd(d), de->d_name, &buf, fdt, de->d_name); else - q = -ENOTSUP; + q = -EOPNOTSUPP; if (q == -EEXIST && merge) q = 0; @@ -317,7 +317,7 @@ int copy_tree_at(int fdf, const char *from, int fdt, const char *to, bool merge) else if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) return fd_copy_node(fdf, from, &st, fdt, to); else - return -ENOTSUP; + return -EOPNOTSUPP; } int copy_tree(const char *from, const char *to, bool merge) { |