summaryrefslogtreecommitdiffstats
path: root/daemon/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/file.c')
-rw-r--r--daemon/file.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/daemon/file.c b/daemon/file.c
index 212aff28..7e2f062a 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -232,6 +232,23 @@ do_chown (int owner, int group, const char *path)
}
int
+do_lchown (int owner, int group, const char *path)
+{
+ int r;
+
+ CHROOT_IN;
+ r = lchown (path, owner, group);
+ CHROOT_OUT;
+
+ if (r == -1) {
+ reply_with_perror ("lchown: %s: %d.%d", path, owner, group);
+ return -1;
+ }
+
+ return 0;
+}
+
+int
do_exists (const char *path)
{
int r;