summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 24c4ff717..d984e6049 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-server.c,v 1.84 2008/06/26 06:10:09 djm Exp $ */ 1/* $OpenBSD: sftp-server.c,v 1.85 2009/04/14 16:33:42 stevesk Exp $ */
2/* 2/*
3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
4 * 4 *
@@ -1041,7 +1041,7 @@ process_rename(void)
1041 else if (S_ISREG(sb.st_mode)) { 1041 else if (S_ISREG(sb.st_mode)) {
1042 /* Race-free rename of regular files */ 1042 /* Race-free rename of regular files */
1043 if (link(oldpath, newpath) == -1) { 1043 if (link(oldpath, newpath) == -1) {
1044 if (errno == EOPNOTSUPP 1044 if (errno == EOPNOTSUPP || errno == ENOSYS
1045#ifdef EXDEV 1045#ifdef EXDEV
1046 || errno == EXDEV 1046 || errno == EXDEV
1047#endif 1047#endif
@@ -1341,7 +1341,7 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw)
1341 __progname = ssh_get_progname(argv[0]); 1341 __progname = ssh_get_progname(argv[0]);
1342 log_init(__progname, log_level, log_facility, log_stderr); 1342 log_init(__progname, log_level, log_facility, log_stderr);
1343 1343
1344 while (!skipargs && (ch = getopt(argc, argv, "C:f:l:che")) != -1) { 1344 while (!skipargs && (ch = getopt(argc, argv, "f:l:che")) != -1) {
1345 switch (ch) { 1345 switch (ch) {
1346 case 'c': 1346 case 'c':
1347 /* 1347 /*