diff lib/protocols.c @ 504:93d7d3b9a477

2004-7-18 Brian Masney <masneyb@gftp.org> * lib/local.c lib/protocols.c lib/rfc959.c src/uicommon/gftpui.c - fixes for the *_chmod() functions to use the datatype mode_t for storing the file attributes
author masneyb
date Sun, 18 Jul 2004 16:19:15 +0000
parents ba50a7085d93
children b6ce74de1cd9
line wrap: on
line diff
--- a/lib/protocols.c	Sun Jul 18 15:57:40 2004 +0000
+++ b/lib/protocols.c	Sun Jul 18 16:19:15 2004 +0000
@@ -1000,6 +1000,8 @@
 
   if (request->chmod == NULL)
     return (GFTP_EFATAL);
+
+  mode &= S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX;
   return (request->chmod (request, file, mode));
 }