From b6b37ba475ef89dadefd00f952a4311101dc2036 Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Wed, 24 Jan 2001 20:01:44 +0000 Subject: - (stevesk) sftp-server.c: fix chmod() mode mask --- sftp-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sftp-server.c') diff --git a/sftp-server.c b/sftp-server.c index b0a8d0d57..92f158801 100644 --- a/sftp-server.c +++ b/sftp-server.c @@ -683,7 +683,7 @@ process_fsetstat(void) #ifdef HAVE_FCHMOD ret = fchmod(fd, a->perm & 0777); #else - ret = chmod(name, a->perm & 077); + ret = chmod(name, a->perm & 0777); #endif if (ret == -1) status = errno_to_portable(errno); -- cgit v1.2.3