summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 03:29:06 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 03:29:06 +0100
commitcdf8f5786387c4764fa790ab5def04dfff8b9af5 (patch)
treeba5cfc17c5d38f0be8acaab1d9149aeee55cb171
parent161d70a57ae8a17dcbc9c426bfff33c8c51318b7 (diff)
downloadsamba-cdf8f5786387c4764fa790ab5def04dfff8b9af5.tar.gz
samba-cdf8f5786387c4764fa790ab5def04dfff8b9af5.tar.bz2
samba-cdf8f5786387c4764fa790ab5def04dfff8b9af5.zip
Use 'regular' chown, libreplace will provide (dummy) replacement if necessary.
-rw-r--r--source3/lib/fault.c2
-rw-r--r--source3/modules/vfs_default.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index d4c1142937..d038e57e1a 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -129,7 +129,7 @@ void dump_core_setup(const char *progname)
}
mkdir(corepath,0700);
- sys_chown(corepath,getuid(),getgid());
+ chown(corepath,getuid(),getgid());
chmod(corepath,0700);
SAFE_FREE(logbase);
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 275c2f53c4..808adf3b28 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -596,7 +596,7 @@ static int vfswrap_chown(vfs_handle_struct *handle, const char *path, uid_t uid,
int result;
START_PROFILE(syscall_chown);
- result = sys_chown(path, uid, gid);
+ result = chown(path, uid, gid);
END_PROFILE(syscall_chown);
return result;
}