diff options
-rw-r--r-- | WHATSNEW.txt | 1 | ||||
-rw-r--r-- | source3/lib/system.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/WHATSNEW.txt b/WHATSNEW.txt index 769270c7d8..90513df8cd 100644 --- a/WHATSNEW.txt +++ b/WHATSNEW.txt @@ -45,6 +45,7 @@ o Stefan Metzmacher <metze@samba.org> * Fix disk_free calculation with group quotas. * Add debug class 'quota' and a lot of DEBUG()'s to the quota code. + * Fix sys_chown() when no chown() is presend o Tim Potter <tpot@samba.org> diff --git a/source3/lib/system.c b/source3/lib/system.c index 16384c8bdf..a0007ec83c 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -490,6 +490,8 @@ int sys_chown(const char *fname,uid_t uid,gid_t gid) DEBUG(1,("WARNING: no chown!\n")); done=1; } + errno = ENOSYS; + return -1; #else return(chown(fname,uid,gid)); #endif |