X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fcopy.c;h=9e4c3b0f72834ff44e3c6a418bfbf0e0a801944c;hb=f5ce2b49585a14cefb6d02f61c8dcdf7628a8605;hp=f9ec6733bec7249f53fa87979616ec634a7bc91d;hpb=f85ef957e647c5182acf5e64298f68e4b7fbfe8f;p=elogind.git diff --git a/src/shared/copy.c b/src/shared/copy.c index f9ec6733b..9e4c3b0f7 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) {