summaryrefslogtreecommitdiff
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
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)
-rw-r--r--WHATSNEW.txt1
-rw-r--r--source3/lib/system.c2
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