summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-01-15 09:08:06 +0000
committerStefan Metzmacher <metze@samba.org>2004-01-15 09:08:06 +0000
commitd5aecd18504b5dff341c5187554ae7a5d872e2bc (patch)
tree8747ff9807dc1e0cfb40a893b2a7a0a7a0b15096 /source3
parent9343c89cb4a1b9f47c38d00b12f3e9058d15b18d (diff)
downloadsamba-d5aecd18504b5dff341c5187554ae7a5d872e2bc.tar.gz
samba-d5aecd18504b5dff341c5187554ae7a5d872e2bc.tar.bz2
samba-d5aecd18504b5dff341c5187554ae7a5d872e2bc.zip
* Fix sys_chown() when no chown() is presend
metze (This used to be commit b0c0d736919079afc4f9bf5a406000048d26fe71)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/system.c2
1 files changed, 2 insertions, 0 deletions
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