Added a comment to the do_chmod() to mark it as a discouraged function.
[rsync/rsync.git] / syscall.c
index ebcb900..d23f2eb 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -112,7 +112,7 @@ int do_mknod(const char *pathname, mode_t mode, dev_t dev)
                        return -1;
                close(sock);
 #ifdef HAVE_CHMOD
-               return do_chmod(pathname, mode);
+               return do_chmod(pathname, mode); /*DISCOURAGED FUNCTION*/
 #else
                return 0;
 #endif