In .../smbd/vfs-wrap.c fchown() is used without checking whether HAVE_FCHOWN is #define'd Patch: diff -u ./source/smbd/vfs-wrap.c.orig ./source/smbd/vfs-wrap.c --- ./source/smbd/vfs-wrap.c.orig 2004-01-06 22:08:41.000000000 +0100 +++ ./source/smbd/vfs-wrap.c 2004-02-29 16:10:46.000000000 +0100 @@ -359,7 +359,11 @@ * But root probably wants to know, e.g. if NFS disallows it. */ +#if defined(HAVE_FCHOWN) if ((fchown(ofd, source_stats.st_uid, source_stats.st_gid) == -1) && (er rno != EPERM)) +#else + if ((chown(dest, source_stats.st_uid, source_stats.st_gid) == -1) && (er rno != EPERM)) +#endif goto err; /*
Fixed. For next time, when submitting patches can you add them to the bug as an attachment rather than inline? It makes it much easier to apply. Thanks!
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.