]> andersk Git - openssh.git/blobdiff - sftp-server.c
- dtucker@cvs.openbsd.org 2005/06/09 13:43:49
[openssh.git] / sftp-server.c
index 39a6bdab4e092a3e9897c9445e25e3e1125c5e53..e82280057534a57a4eeb6dcba955b5d5e620bf31 100644 (file)
@@ -31,11 +31,7 @@ RCSID("$OpenBSD: sftp-server.c,v 1.47 2004/06/25 05:38:48 dtucker Exp $");
 #define get_string(lenp)               buffer_get_string(&iqueue, lenp);
 #define TRACE                          debug
 
-#ifdef HAVE___PROGNAME
 extern char *__progname;
-#else
-char *__progname;
-#endif
 
 /* input and output queue */
 Buffer iqueue;
@@ -840,7 +836,11 @@ process_rename(void)
        else if (S_ISREG(sb.st_mode)) {
                /* Race-free rename of regular files */
                if (link(oldpath, newpath) == -1) {
-                       if (errno == EOPNOTSUPP) {
+                       if (errno == EOPNOTSUPP
+#ifdef LINK_OPNOTSUPP_ERRNO
+                           || errno == LINK_OPNOTSUPP_ERRNO
+#endif
+                           ) {
                                struct stat st;
 
                                /*
This page took 0.032957 seconds and 4 git commands to generate.