diff src/uicommon/gftpui.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 39e9945288ea
children e0585b062a75
line wrap: on
line diff
--- a/src/uicommon/gftpui.c	Sun Jul 18 15:57:40 2004 +0000
+++ b/src/uicommon/gftpui.c	Sun Jul 18 16:19:15 2004 +0000
@@ -1447,7 +1447,8 @@
       if (!curfle->is_fd && preserve_permissions)
         {
           if (curfle->st_mode != 0)
-            gftp_chmod (tdata->toreq, curfle->destfile, curfle->st_mode);
+            gftp_chmod (tdata->toreq, curfle->destfile,
+                        curfle->st_mode & (S_IRWXU | S_IRWXG | S_IRWXO));
 
           if (curfle->datetime != 0)
             gftp_set_file_time (tdata->toreq, curfle->destfile,