]> andersk Git - openssh.git/blobdiff - sftp-server.c
- (bal) Use chown() if fchown() does not exist in ftp-server.c patch by
[openssh.git] / sftp-server.c
index 346411e798ba1771926465aa0dc0019d8f250406..0291da2063de61dc4981cdb6aac29d9de1b1fb32 100644 (file)
@@ -609,7 +609,11 @@ process_fsetstat(void)
                                status = errno_to_portable(errno);
                }
                if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
+#ifdef HAVE_FCHOWN
                        ret = fchown(fd, a->uid, a->gid);
+#else
+                       ret = chown(name, a->uid, a->gid);
+#endif
                        if (ret == -1)
                                status = errno_to_portable(errno);
                }
This page took 0.04058 seconds and 4 git commands to generate.