diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:27:45 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-01 03:27:45 +0100 |
commit | 161d70a57ae8a17dcbc9c426bfff33c8c51318b7 (patch) | |
tree | 2f98456ae87db079c1348784e43ed2024f5580e9 /lib/replace/replace.c | |
parent | dfc78b1dc2738264791e631c599d75e832aebde2 (diff) | |
download | samba-161d70a57ae8a17dcbc9c426bfff33c8c51318b7.tar.gz samba-161d70a57ae8a17dcbc9c426bfff33c8c51318b7.tar.bz2 samba-161d70a57ae8a17dcbc9c426bfff33c8c51318b7.zip |
Move sys_chown() to rep_chown().
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index 98d799b07e..74af75ebf1 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -2,6 +2,7 @@ Unix SMB/CIFS implementation. replacement routines for broken systems Copyright (C) Andrew Tridgell 1992-1998 + Copyright (C) Jelmer Vernooij 2005-2008 ** NOTE! The following LGPL license applies to the replace ** library. This does NOT imply that all of Samba is released @@ -614,3 +615,15 @@ int rep_utimes(const char *filename, const struct timeval tv[2]) return utime(filename, &u); } #endif + +#ifndef HAVE_CHOWN +/** +chown isn't used much but OS/2 doesn't have it +**/ +int rep_chown(const char *fname, uid_t uid, gid_t gid) +{ + errno = ENOSYS; + return -1; +} +#endif + |